安装VLC 浏览器插件
使用下面的代码保存成HTML文件
替换你摄像头的RTSP视频流
使用360安全浏览器就可以正常播放视频流
[HTML] 纯文本查看 复制代码 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<head>
<title>VideoStream</title>
</head>
<body>
<object id="vlc" type="application/x-vlc-plugin" width="2460" height="1060" pluginspage="http://www.videolan.org"
events="True">
<param name="controls" value='false' />
<param name="text" value ='Loading.....'>
<param name="ShowDisplay" value="True" />
<param name="Loop" value="False" />
<param name="AutoPlay" value="True" />
<param name="rtsp-tcp" value="True" />
<embed type="application/x-google-vlc-plugin" ></embed>
</object>
<script type="text/javascript">
setTimeout(function(){
var vlc = document.getElementById("vlc");
var options = new Array(":network-caching= 1000");
var options = new Array(":rtsp-frame-buffer-size= 1000000");
var id = vlc.playlist.add("rtsp://用户名:密码@IP/h264/ch1/main","vedio",options);
vlc.playlist.playItem(id);
},500)
</script>
</body>
</html> |