暂存下来,以备查
开发文档:http://dev.polyv.net/2017/videoproduct/v-playerapi/html5player/html5-docs/
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <div id="player"></div> <input type="button" name="" value="播放" onclick="H5play()"> <input type="button" name="" value="暂停" onclick="H5pasue()"><br> <span id="onPlayerInitOver">初始化中。。。</span><br> <script src="//player.polyv.net/script/player.js"></script> <script> var player = polyvPlayer({ wrap: '#player', 800, height: 533, vid: 'ea6a593c406ebeaa8d7840586b2f0201_e', df:0 }); //播放 function H5play(){ player.HTML5.play(); } //暂停 function H5pasue(){ player.HTML5.pause(); } //初始化结束 window.s2j_onPlayerInitOver = function(){ //console.log("初始化"); document.getElementById("onPlayerInitOver").innerHTML="初始化结束"; } window.s2j_onReadyPlay = function(){ console.log("初始化"); } </script> </body> </html>