-
Hey, thanks for the cool theme.
I’d like to be able to get the video I’ve set on the homepage to pause after a set time and not loop.
Is there some JS I can change or add?
Any help would be greatly appreciated.
Thanks.
Hello websupportpls,
could you be more precise please? The video you set on the homepage is included as a background of Visual Composer rows?Thanks,
AndreaHey Andrea,
Yeah, it’s as a background to a row in the composer. Similar to one of the demo videos; I think it was wind turbines on the demo.
There are no options once you click to use a video background regarding looping or anything. Basically, I would like the video I have to stop at a certain point. I could write some jquery/js but I’m not sure where I would put it.
Something like,
$("#video").on( "timeupdate", function(event){ if(this.currentTime >= varTime){ this.pause(); } });
Thanks for your help!
Hello,
this issue does not come from our theme but via Visual Composer default row setting that doesn’t allow to stop looping or doing other stuff with background videos.
By the way, before writing code, I ask to Visual Composer support to come up with a solution. As I receive an answer I’ll write you back.Bye,
AndreaThanks, if you dont hear anything from VC:
Related to the theme, I was wondering if there was somewhere I could put that code I mentioned, within the js files that are in the theme?
Hello, I’m Igor, developer here at T2G.
Actually video backgrounds in the theme are managed entirely by Visual Composer, and actually they offer no support for advanced play/loop/pause/volume.
Probably there are some plugins out there to add control over this, but actually the theme doesn’t add or remove any functionality regarding your needs.
I’m sorry but we can provide you full support about theme code/usage or plugins usage, but adding custom functionalities to visual composer is something pretty far from the service we are able to provide, because this plugin is developer from WP Bakery.I think the fastest solution for your request is to check for a complementary plugin, as even getting a Personal License for VG to ask them directly won’t lead to any result, they never provide code customizations or advanced answers like these.
I know for sure any extra playback parameter is stripped from the video URl, so technically the simple control you would like is inhibited by the Visual Composer behavior.
Unfortunately I have no suggestions for you regarding that plugin, sorry.
Best regards
Igor
The topic ‘Pause video on homepage’ is closed to new replies.