欢迎各位兄弟 发布技术文章
这里的技术是共享的
主要操作是看firebug 下的 下面这个div的class变动情况
<div class="ninghao-player flowplayer is-splash is-paused is-mouseout" style="background:url( ../video/croods-02.jpg ) no-repeat 50% 50%;background-size: 100%">
我们实际演示一下 看class的变动
然后通过 css来修改class就实现了操作 控制 flowplayer
比如 正在播放时 class里面有 is-playing 暂停进 class里面没有
is-playing 增加了 is-pause
我们如下的代码 移除 is-playing再 增加 is-pause 就实现了暂停
$('.shipigndiv:visible').eq(0).children('.ninghao-player').eq(0).removeClass('is-playing').addClass('is-paused');
http://flowplayer.org/docs/api.html#methods
http://stackoverflow.com/questions/14572102/how-can-i-call-a-flowplayer-object-method
http://flash.flowplayer.org/documentation/api/
http://flowplayer.org/docs/api.html
http://flash.flowplayer.org/documentation/api/flowplayer.html