Flowplayer单击时如何停止AnythingSlider [英] How to stop AnythingSlider when Flowplayer clicked

查看:123
本文介绍了Flowplayer单击时如何停止AnythingSlider的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在 AnythingSlider 控件内使用Flowplayer插件.当用户单击以与Flowplayer交互时,我想停止将滑块移动到下一张幻灯片.我已经尝试了以下方法,但是滑块会继续移动到下一张幻灯片; #start-stop项上的.click()调用也不起作用.我希望它在用户单击Flowplayer的任何部分时停止,尽管在这种情况下,我已对其进行onStart测试.

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);
    }
}); 

谢谢.

推荐答案

确保获得最新版本的

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);
  }
 }
});

这篇关于Flowplayer单击时如何停止AnythingSlider的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆