Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1060360

    Hi, Yigit,
    I have a hosted video in a tabs section, more precisely in a tab of five.
    When video is played if I change active tab, the video continue playing in the background. This is not good.
    To pause the video when another card is selected, I wrote the following function and added it as a block of code to the page:

    <script>
    $(‘.av-tab-section-image’).on(‘click’, function() {
    $(‘video’).trigger(‘pause’);
    });
    </script>

    then to remove video loop I changed in section.php file
    ‘video_loop’ => true,
    to
    ‘video_loop’ => false,
    and in video.php file
    $output = avia_html5_video_embed($src, $fallback_img);
    to
    $types = array(‘webm’ => ‘type=”video/webm”‘, ‘mp4’ => ‘type=”video/mp4″‘, ‘ogv’ => ‘type=”video/ogg”‘);
    $attributes = array(‘autoplay’ => 0, ‘loop’ => 0, ‘preload’ => ” );
    $output = avia_html5_video_embed($src, $fallback_img, $types, $attributes);

    Everything works properly!
    Any other suggestions?
    Regards
    Lion

    • This topic was modified 5 years, 9 months ago by lion73.
    #1061257

    Hey lion73,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1061571

    Sorry Victoria, you do not know what you’re talking about.
    The message was not for you.
    Like so many times, you show the lack of knowledge of the code and of the theme!
    Your responses to comments are just a waste of time for those who read them!

    • This reply was modified 5 years, 9 months ago by lion73.
    #1062123

    Hi there,

    Thanks for sharing your code, I’ll tag Yigit for topic so that he can have a look at it.

    If you have a problem with a moderator then please keep it to yourself. Language like that is not really necessary on a public forum.

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.