Navigation
This is archived content. Visit our new forum.
  • Author
    Posts
  • #276333

    UnityinAshland
    Participant

    Hello,

    I am attempting to stop the background video in my “Above Masthead” slider from looping. I would like the video to just stop on the last frame of the video. I have attempted to just use “?loop=0” in the url, however that is ineffective. I think that something has to be be changed within the javascript, however I am not confident enough to do that without some guidance.

    The website in question is:

    dev.unityashland.com
    Running WP: 4.2.2 Theme X 3.2.2

    Thank you such much for the support!
    I love and appreciate this theme so much!

    Be well

    **On a side note, I have not connected our Theme X API code, as I am developing this new website at the URL dev.unityashland.com If I connect the API, will it cause issues once I move the website to the live site of just http://www.unityashland.com?**

    #276508

    Friech
    Moderator

    Hi There,

    Thanks for writing in!

    Instead of using a background video, you can try adding a video layer instead.
    That way you can disable the video loop.

    http://screencast.com/t/CROyY2DV

    Hope that helps. Cheers!

    #345717

    chill986
    Participant

    But then don’t you lose the scroll bottom anchor? And then you have to deal with the pause button being in the middle of the video. Have you found another way to stop the video from looping while using the background video?

    Thanks!

    #345912

    John Ezra
    Member

    Hi there,

    Thanks for updating the thread! You can add this under Custom > JavaScript in the Customizer.

    jQuery (function($) {
    
    $(document).ready( function() {$('.x-section video').prop('loop', false); } );
    
    } );

    Hope this helps – thanks!

    #671838

    I need help stopping the looping on my video as well with additional help on hearing the sound from my video file. However with that said, I have no idea how to do the jQuery stuff you mentioned in this post. I am a front end designer and have zero comfort with the above coding.

    http://63e.ab9.myftpupload.com

    #672133

    Lely
    Moderator

    Hello There,

    Please login to your WordPress Admin. On the left part you can see Admin Menu. Click Appearance >Customize, Click Custom Tab and on the Javascript Textarea add the code below:

    jQuery (function($) {
    
    $(document).ready( function() {$('video').prop('loop', false); } );
    
    } );

    Hope this helps.

    #672543

    beni
    Participant

    Hi and sorry for dropping in;
    I ran into the exact same problem. While your first suggestion didn’t work for me, the second one actually does kill the loop. But it also puts the vid back to its first frame. I would need it to stay on the very last one instead. Maybe theres a way to check the time and make it pause/stop at 25 seconds?

    Regards, Beni

    #672563

    Paul R
    Moderator

    Hi Beni,

    Kindly create a new topic and provide us with your wordpress admin login on a separate private reply so we can take a closer look on your set-up.

    Thanks

    #672570

    beni
    Participant
    This reply has been marked as private.
    #672586

    Rue Nel
    Moderator

    Hi Beni,

    I am another staff checking this thread. The only thing we can do is to disable the loop using this code:

    jQuery (function($) {
      $(document).ready( function() {$('video').prop('loop', false); } );
    } );

    Based on the information you have shared, you want to stop the video at a certain time or at least freeze the frame at a certain time. As this is all custom development, regretfully we won’t be able to assist further. Custom development is outside the scope of our support. We’re happy to provide advice and get you started in the right direction, but you would still be responsible for the implementation.

    Perhaps these links might you:
    stackoverflow.com/questions/19355952/make-html5-video-stop-at-indicated-time
    gingertech.net/2009/08/19/jumping-to-time-offsets-in-videos/

    Thank you for your understanding.

    #672597

    beni
    Participant

    I understand. Thanks for getting me started, i’ll see what i can do. There should also be a update for the rev.Slider 5.0.8 to fix this problem. Maybe it will come to xtheme soon…

    Regards

    #672628

    Zeshan
    Member

    You’re welcome! 🙂

    Revolution Slider bundled version 5.0.9 is available for update. Please see our Changelog. You may refer to our update guide.

    Cheers!