欢迎各位兄弟 发布技术文章
这里的技术是共享的
$( ".ninghao-player" ).flowplayer().on("pause",function(e,api){
alert(1111); //$('#poster').addClass('postershow'); }); 下面是各种事件
event | when it fires |
beforeseek | Before seeking starts at the origin position. The 3rd argument gives access to the seek target position. By calling event.preventDefault() (where event is the callback's 1st argument) the seek can be stopped. |
disable | When the player toggles between disabled and normal state. In disabled mode the UI elements cannot be used. |
error | When an error occurred. The 3rd argument provides an object featuring thecode and message properties. See the error table below. |
finish | When playback has finished. |
fullscreen | When the player goes to fullscreen mode. |
fullscreen-exit | When player exits fullscreen mode. |
load | First event in the lifecycle of the (first) clip, before the configured clip or a new video starts playing. Offers an opportunity to alter the video properties. The 3rd argument provides the video object featuring basic data like src , but not yet the video metadata from the server (such as duration ). Returning false will prevent the video from loading. |
mute | When the player's mute state is toggled. |
pause | When playback is paused. |
progress | When the playhead moves forward. Happens approximately every 250 milliseconds during playback. The 3rd argument provides the current playback position, i.e. the current value of the time property of the video object. |
ready | When the video is fully loaded and video metadata (such as duration ) becomes available from the video object which is provided by the 3rd argument. |
resume | When playback is resumed. |
seek | When seeking is completed at the target position. The 3rd argument gives access to the target position. |
shutdown | When the player and API instance is destroyed, after the shutdown() methodhas been invoked. Last event in a player's life cycle. |
speed | When the playback speed is changed. The new level is provided by the 3rd argument. |
stop | When playback is stopped by the stop() method. |
unload | When the player goes back to the splash state. |
volume | When the volume level is changed. The new level is provided by the 3rd argument. |