How to stop AnythingSlider when Flowplayer clicked

折月煮酒 提交于 2019-12-13 02:37:24

问题


I'm using the Flowplayer plugin inside the AnythingSlider control. I'd like to stop the slider from moving to the next slide when the user clicks to interact with the Flowplayer. I've tried the following but the slider continues to move to the next slide; the .click() call on the #start-stop item didn't work either. I'd like it to stop when the user clicks on any part of the Flowplayer, though in this case I tested it for the onStart.

$f("vid", "flowplayer-3.2.1.swf", {
    clip: {
      autoPlay: false,
      autoBuffering: true,
      onStart: function(clip) {
        //$('#start-stop').click();
        $('.anythingSlider').anythingSlider.startStop(false);
    }
}); 

Thank you.


回答1:


Make sure you get the latest version of AnythingSlider, then try this:

$f("vid", "flowplayer-3.2.1.swf", {
 clip: {
  autoPlay: false,
  autoBuffering: true,
  onStart: function(clip) {
   $('.anythingSlider').data('AnythingSlider').startStop(false);
  }
 }
});


来源:https://stackoverflow.com/questions/2827312/how-to-stop-anythingslider-when-flowplayer-clicked

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!