treehouse : what would you like to learn today?
Web Design Web Development iOS Development

BUG anythingslider , video doesn't pause when slided!

  • hi,
    I don't understand, i use exactly the same code, by défault,
    but videos continue playing when its not in view, i use joomla who use mootools for the core,
    do u think the pb its due to a conflict with both ?! Just one time, i saw the same issue on the css triks,
    in the demo of anythingslider, the video doest stop when sliding..

    Am i alone with this issue? please help, 3days on it, i begin crazy!..

    jess
  • edit: i retry with exactly the same scriptt on the site, and i put all file
    in a folder on local. THe same! video continue playing when slide, big issue!
  • Just because you move it around on your page it will not pause. I cannot figure out why you expect that to happen...

    You could probably make it happen by running some javascript stuff when the forward/next buttons are pressed. That bit of javascript would be different depending on where it comes from.

    If it is a youtube video, this link will probably seem useful to you:
    YouTube API Playback Control
  • I am very new to jquery. My slider works fine except when using jwplayer with video playing. The slider does not stop sliding nor stops the video

    I am using this which works only if you pause video and click play again?

        <script>
    $('#slider').ready(function(){
    
    //Pause Slider when Playing
        jwplayer().onPlay(function() { 
     $('#slider1').data('AnythingSlider').startStop(false);  
    }); 
    });       
    
       </script>