-
AuthorPosts
-
September 13, 2018 at 1:34 pm #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.September 13, 2018 at 8:39 pm #1009627Hey 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 ShannonOctober 10, 2018 at 1:45 pm #1019941I 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
October 13, 2018 at 9:45 am #1021018Hi 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,
NikkoOctober 13, 2018 at 11:05 am #1021033Niko,
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 seeOctober 15, 2018 at 9:14 pm #1021810Hi,
Have you done those modifications suggested to the application or not?
Best regards,
BasilisOctober 16, 2018 at 4:31 am #1021936Hello, as I have said several times, there are no folders to copy to in the child theme. Please advise.
October 16, 2018 at 7:09 am #1022008Hi 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,
NikkoOctober 17, 2018 at 12:52 am #1022456Great, thanks
October 17, 2018 at 10:16 am #1022661Hi 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,
NikkoOctober 18, 2018 at 3:44 pm #1023396perfect, thanks so much
October 18, 2018 at 5:45 pm #1023515Hi 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,
NikkoSeptember 26, 2019 at 6:13 pm #1142440Hi 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.2Thanks
September 27, 2019 at 2:01 am #1142526Hi 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,
NikkoOctober 2, 2019 at 1:02 am #1143992Thanks 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.
October 3, 2019 at 7:05 am #1144365Hi jberg1,
Sure, we will forward this request to Kriesi and our devs :)
Best regards,
NikkoApril 13, 2020 at 9:14 pm #1203349Hello,
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!
April 14, 2020 at 3:54 pm #1203632Hi ClimbingSocks,
Please start a separate thread, describe your issue there and give us a link to your website.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.