网页插件 - 翼展电脑服务中心


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

2016-9-15 乱云飞 监控 评论(0) 浏览(1025) 标签: 监控播放器 海康威视 网页插件

<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>

用VLC网页插件播放RTSP监控代码

2016-8-30 乱云飞 代码 评论(0) 浏览(727) 标签: 网页插件

<object type='application/x-vlc-plugin' pluginspage="http://www.videolan.org/" id='vlc' events='false' width="720" height="450">
    <param name='mrl' value='rtsp://admin:********@192.168.1.81/h264/ch1/main/av_stream' />
    <param name='volume' value='50' />
    <param name='autoplay' value='true' />
    <param name='loop' value='false' />
    <param name='fullscreen' value='false' />
    <param name='controls' value='false' />
</object>
预ICP备10086-001号 © 翼展网/80C.CC 技术支持/洛阳翼展科技
TEL / 13213610060 QQ / 345794501
Powered by emlog