Skip to content

Commit 96ffa68

Browse files
应元东应元东
应元东
authored and
应元东
committed
use en
1 parent 3e0b6d0 commit 96ffa68

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

index.template.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<title>rtmp test</title>
44
<script src="./node_modules/broadway-player/Player/Decoder.js"></script>
55
<script src="./node_modules/broadway-player/Player/YUVCanvas.js"></script>
6+
<script src="./node_modules/broadway-player/Player/Player.js"></script>
67
<script src="./node_modules/broadway-player/Player/stream.js"></script>
78
<script src="./node_modules/broadway-player/Player/Player.js"></script>
89
</head>

test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const WebRtmpPlayer = require('./WebRtmpPlayer');
22

33
//note: tcUrl是原始rtmp地址,不含流名称。参见rtmp spec
4-
alert('请在test.js中设置你的 播放参数');
4+
alert('set your rtmp params in test.js first!');
55
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', '<app>', '<streamName>', 'rtmp://<rtmp_server>/<app>');
66
player.canvas.style['height'] = '100%';
77
document.getElementById("vidCont").appendChild(player.canvas);

0 commit comments

Comments
 (0)