1 Star 0 Fork 75

aarontang/RtspWebSocket

forked from chengpengvb/RtspWebSocket 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
view-stream.html 684 Bytes
一键复制 编辑 原始数据 按行查看 历史
chengpengvb 提交于 2019-08-19 11:27 . 更新 view-stream.html
<!DOCTYPE html>
<html>
<head>
<title>JSMpeg Stream Client</title>
<style type="text/css">
html, body {
text-align: center;
}
</style>
</head>
<body>
<canvas id="video-canvas"></canvas>
<canvas id="video-canvas1"></canvas>
<script type="text/javascript" src="jsmpeg.min.js"></script>
<script type="text/javascript">
var canvas = document.getElementById('video-canvas');
var url = 'ws://127.0.0.1:8082/live1';
var player = new JSMpeg.Player(url, {canvas: canvas});
var canvas1 = document.getElementById('video-canvas1');
var url1 = 'ws://127.0.0.1:8082/live2';
var player1 = new JSMpeg.Player(url1, {canvas: canvas1});
</script>
</body>
</html>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/leontang/RtspWebSocket.git
git@gitee.com:leontang/RtspWebSocket.git
leontang
RtspWebSocket
RtspWebSocket
master

搜索帮助