网页调用海康威视插件播放监控视频
2016-9-15 乱云飞 监控 评论(0) 浏览(3232) 标签: 监控播放器 海康威视 网页插件
<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) 浏览(1829) 标签: 网页插件 网页播放RTSP RTSP播放器
<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>