使用ezuikit.js播放直播监控:
本地引入:
最新版本:git clone https://github.com/Hikvision-Ezviz/EZUIKit-JavaScript.git
<script src="{{location path}}/ezuikit.js"></script>
文件百度网盘:
https://pan.baidu.com/s/1W0XxkS4M_a9p736xn7c3OQ 提取码:twcj
http引入:
<script src="https://open.ys7.com/sdk/js/1.4/ezuikit.js"></script>
html
<video
id="myplayer"
src="视频url"
width="400"
height="300"
poster="[封面图片URL]"
muted autoplay controls playsInline webkit-playsinline >
</video>
参数说明:
src: 直播地址支持ezopen协议格式(推荐)支持HLS,RTMP,FLV,m3u8等任意格式直播地址
autoplay : true或false,是否自动播放,默认true
muted:静音
js:
初始化:
var player = new EZUIPlayer('myPlayer');
播放:player.play()
停止:player.stop()
网友评论