欢迎各位兄弟 发布技术文章

这里的技术是共享的

You are here

flowplayer js api 自己亲自做的试的 播放 暂停 停止 play stop pause 有大用

shiping1 的头像

   主要操作是看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

普通分类: