海康威视插件播放器
2017-7-13 乱云飞 监控 评论(0) 浏览(1561) 标签: 网页播放监控 海康威视 高清摄像头 监控播放插件 播放器源码
<div style="width:100%;height:100%;background-color:#000;"> <embed type='application/hwp-webvideo-plugin' id='ezplay' width='100%' height='100%' name='ezplay' align='center' wndtype='1' playmode='0'></embed> <script language="javascript" type="text/javascript"> var Netocx; function Play() { //var i; var szURL = "rtsp://1.80c.cc:554/PSIA/streaming/channels/101"; var UserID = Netocx.HWP_Play(szURL, "Y0RtaW46ZTEx0TExMTE=", 0, "", "");//Base64编码 } function Stop() { var Netocx = document.getElementById("ezplay"); Netocx.HWP_Stop(0);//0是通道号 } function init() { Netocx = document.getElementById("ezplay"); //setTimeout(Play,100); Play(); } </script> </div>