网页调用海康威视插件播放监控视频 - 洛阳翼展电脑


网页调用海康威视插件播放监控视频

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
0

发表评论:

VirtualCamera:在录像机中虚拟一个通道显示电脑桌面、视频文件、USB摄像头~
预ICP备10086-001号 © 翼展网/80C.CC 技术支持/洛阳翼展科技
TEL / 13213610060 QQ / 345794501
Powered by emlog