码迷,mamicode.com
首页 > 其他好文 > 详细

ZNYW.视频测试页面

时间:2018-02-11 12:39:04      阅读:2801      评论:0      收藏:0      [点我收藏+]

标签:format   ati   render   wait   编码   测试   设备   --   content   

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.视频测试页面

标签:format   ati   render   wait   编码   测试   设备   --   content   

原文地址:https://www.cnblogs.com/DrMess/p/8440686.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!