player.on( 'durationchange',  function( e ) { window.console.log( 'videoJS: durationchange' ); });
player.on( 'ended',       function( e ) { window.console.log( 'videoJS: ended' ); });
player.on( 'error',       function( e ) { window.console.log( 'videoJS: error' ); });
player.on( 'firstplay',     function( e ) { window.console.log( 'videoJS: firstplay' ); });
player.on( 'loadedalldata',   function( e ) { window.console.log( 'videoJS: loadedalldata' ); });
player.on( 'loadeddata',    function( e ) { window.console.log( 'videoJS: loadeddata' ); });
player.on( 'loadedmetadata',  function( e ) { window.console.log( 'videoJS: loadedmetadata' ); });
player.on( 'loadstart',     function( e ) { window.console.log( 'videoJS: loadstart' ); });
player.on( 'pause',       function( e ) { window.console.log( 'videoJS: pause' ); });
player.on( 'play',        function( e ) { window.console.log( 'videoJS: play (adState: ' + player.ads.state + ')' ); });
player.on( 'seeked',      function( e ) { window.console.log( 'videoJS: seeked' ); });
player.on( 'seeking',       function( e ) { window.console.log( 'videoJS: seeking' ); });
player.on( 'waiting',       function( e ) { window.console.log( 'videoJS: waiting' ); });

player.on( 'contentplayback',   function( e ) { window.console.log( 'videoJS: contentplayback' ); });
player.on( 'ended',       function( e ) { window.console.log( 'videoJS: ended' ); });

player.on( 'ima3error',     function( e ) { window.console.log( 'videoJS/IMA3: ima3error' ); });
player.on( 'ima3-ad-error',   function( e ) { window.console.log( 'videoJS/IMA3: ima3-ad-error' ); });
player.on( 'ima3-ready',    function( e ) { window.console.log( 'videoJS/IMA3: ima3-ready' ); });

player.on( 'ads-request',     function( e ) { window.console.log( 'videoJS/Ads: ads-request' ); });
player.on( 'ads-load',    function( e ) { window.console.log( 'videoJS/Ads: ads-load' ); });
player.on( 'ads-ad-started',    function( e ) { window.console.log( 'videoJS/Ads: ads-ad-started' ); });
player.on( 'ads-ad-ended',    function( e ) { window.console.log( 'videoJS/Ads: ads-ad-ended' ); });
player.on( 'ads-first-quartile',    function( e ) { window.console.log( 'videoJS/Ads: ads-first-quartile' ); });

最新事件列表:https://videojs.com/advanced/

api: https://docs.videojs.com/docs/api/player.html

插件:Plugins
https://www.cnblogs.com/nightstarsky/p/6656713.html

作者 铁血 汉子 2019年2月12日
2024/12/22/08:54:36am 2019/2/12/6:11:39
0 6385