Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #1009384

    I’ve created a post & used the enfold video element shortcode to insert a self-hosted video. It loops back to the beginning when it reaches the end of play.
    How do I stop it from looping?
    I’ve searched the forum for a solution but haven’t been able to find a workable option.

    #1009627

    Hey kmac,

    Please refer to the following:

    https://kriesi.at/support/topic/how-to-stop-background-video-in-color-section-from-auto-looping/

    Best regards,
    Jordan Shannon

    #1019941

    I am having this same issue, whether it is in a color section or not. Installed the child theme, went to change the files around that are not there in the child theme. Please advise

    #1021018

    Hi fashiontribe,

    Thanks for giving us admin access.
    I was able to check the child theme and noticed that you still haven’t done the following:
    copy enfold/config-templatebuilder/avia-shortcodes/section.php file into enfold-child/shortcodes/ folder and then open section.php file in your child theme and find

    'video_loop' => true,

    and change it to

    'video_loop' => false,

    and add the code in this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ into functions.php file of your child theme.
    complete the instruction and that should work.

    Best regards,
    Nikko

    #1021033

    Niko,
    I did have the child theme enabled but these files “enfold-child/shortcodes/ folder and then open section.php file” were not present. So there was nothing to copy to. The files I was supposed to copy code into was missing. I will activate the child theme, so you can see

    #1021810

    Hi,

    Have you done those modifications suggested to the application or not?

    Best regards,
    Basilis

    #1021936

    Hello, as I have said several times, there are no folders to copy to in the child theme. Please advise.

    #1022008

    Hi fashiontribe,

    You should copy it from the parent theme: Enfold.
    You need to access the files first and go to enfold/config-templatebuilder/avia-shortcodes/section.php
    We can help you with it if you can give us ftp access.
    Just post the details in private content, so it’s only visible to us moderators.

    Best regards,
    Nikko

    #1022456

    Great, thanks

    #1022661

    Hi fashiontribe,

    We have modified your child theme and it’s not looping anymore.
    We have added this code in functions.php:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
      $template_url = get_stylesheet_directory();
          array_unshift($paths, $template_url.'/shortcodes/');
    
      return $paths;
    }

    then in your child theme’s shortcode folder another folder is created called video then copy video.php from enfold > config-templatebuilder > avia-shortcodes > video folder and paste it inside the video folder of the child theme.
    Modified line 387 of video.php:

    $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);

    Let us know if you need further assistance.

    Best regards,
    Nikko

    #1023396

    perfect, thanks so much

    #1023515

    Hi fashiontribe,

    Glad that we could help. :)
    Feel free to comeback if you need further asistance on the same or related issue.
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

    #1142440

    Hi Nikko,

    I am facing same issue with video looping. I copied the files you mentioned to my child theme. However. I cant find the code you mention in my video.php file on line 387

    The code that I think I might be looking for is located on line 347.
    Can you help me out ? I am using the latest version of Enfold v4.6.2

    Thanks

    #1142526

    Hi marcusss,

    Enfold 4.6.2, already contained fixes mentioned above.
    Can you create a new thread please? then give us a temporary administrator login and post it in private content.
    We’ll need it in a separate thread, because information posted in private content can only be viewed by the moderators and the thread creator.

    Best regards,
    Nikko

    #1143992

    Thanks Nikko, That worked great.
    But I still had to implement in v4.6.2
    Maybe a feature request would be to add the ability to choose if the Video loops and/or autostarts in the Video Element settings. So this isn’t a site wide setting.

    I would add this to the feature request forum, but that still isn’t accepting requests.

    Thanks again.

    • This reply was modified 5 years, 1 month ago by jberg1.
    #1144365

    Hi jberg1,

    Sure, we will forward this request to Kriesi and our devs :)

    Best regards,
    Nikko

    #1203349

    Hello,
    how are you?
    I have exactly the same problem. I want to prevent a self-hosted mp4 Video from looping. Unfortunately my webmaster skills are not sufficient enough to work with your descriptions above. What excactly do I have to do? Thank you very much in advance for your assistance!

    Best regards!

    #1203632

    Hi ClimbingSocks,

    Please start a separate thread, describe your issue there and give us a link to your website.

    Best regards,
    Victoria

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