网页调用海康威视插件播放监控视频
2016-9-15 乱云飞 监控 标签: 监控播放器 海康威视 网页插件
<body onload="init()" onunload="Stop()" >
<div style="width:100%;height:100%;background-color:#000;">
<script language="javascript" type="text/javascript">
var Netocx;
function Play() {
var i;
var szURL = "rtsp://192.168.1.82:554/PSIA/streaming/channels/101";
var UserID = Netocx.HWP_Play(szURL, "admin:12345678", 0, "", "");//Base64编码
}
function Stop() {
var Netocx = document.getElementById("PreviewActiveX");
Netocx.HWP_Stop(0);//0是通道号
}
function init() {
Netocx = document.getElementById("PreviewActiveX");
setTimeout(Play, 100);
//Play();
}
</script>
<embed type='application/hwp-webvideo-plugin' id='PreviewActiveX' width='100%' height='100%' name='PreviewActiveX' align='center' wndtype='1' playmode='0'></embed>
</div>本文链接:http://80c.cc/ez/34.html
发表评论: