1
votes

I'm using the Revolution Slider WordPress plugin and I'm having trouble getting the video to stop once the user navigates to the next slide. I can't seem to find the option to disable that, if there is any. Does anyone know if this is possible?

Example: If you go here, click on the first slide, click on the play button that comes up, then navigate to the next slide while the video is playing, you'll notice that the video still plays in the background even though you're on the next slide.

1

1 Answers

0
votes

You can stop the player when you click on the arrows. Of course, replace the ID of the player with just iframe to stop all videos if you have more than one or the ID's will change when you modify slides.

$('.tparrows').click(function(){
    //either
    $('.rev_slider').find('#iframe961').get(0).stopVideo();

    //or
    $('.rev_slider').find('iframe').get(0).stopVideo();
});

edit: You need to add &enablejsapi=1 to the video's url too. But then it will work!