ZNYW.視頻測試頁面
阿新 • • 發佈:2018-02-11
layer wait utf blog controls webkit div cati 視頻
1、
1.1、
通道1 ef9fb5b5571144358717a6b7bec6f47f 通道2 706c9eda92a84d2aaf08176766ddae19 通道3 9fc7431286364a34b65f0a15dbac3d40 通道4 e990b103c2864211a470a8a060f6383d
1.2、公司的設備ID
ef9fb5b5571144358717a6b7bec6f47f
2、(UTF-8編碼格式)
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" > <meta name="renderer" content="webkit"> <title>測試頁面</title> <style> body{margin:0;} #myPlayer{max-width: 1200px;width: 100%;} </style> </head> <script> </script> <body> <script src="https://open.ys7.com/sdk/js/1.3/ezuikit.js"></script> <!--<script src="./ezuikit.js"></script>--> <video id="myPlayer" poster="" controls playsInline webkit-playsinline autoplay> <source src="rtmp://rtmp.open.ys7.com/openlive/8385e8a824b54649b1728bf9c863e1ad"type="rtmp/flv" /> <source src="http://hls.open.ys7.com/openlive/8385e8a824b54649b1728bf9c863e1ad" type="application/x-mpegURL" /> </video> <script> var player = new EZUIPlayer(‘myPlayer‘); player.on(‘error‘, function(){ console.log(‘error‘); console.log("try play <----------------------"); player.play(); }); player.on(‘play‘, function(){ console.log(‘play‘); }); player.on(‘pause‘, function(){ console.log(‘pause‘); }); player.on(‘waiting‘, function(){ console.log(‘waiting‘); }); // 日誌 player.on(‘log‘, log); function log(str){ var div = document.createElement(‘DIV‘); div.innerHTML = (new Date()).Format(‘yyyy-MM-dd hh:mm:ss.S‘) + JSON.stringify(str); if (str["0"] == "error") { console.log("try play <====================="); player.play(); } document.body.appendChild(div); } </script> </body> </html>
3、
4、
5、
ZNYW.視頻測試頁面