Skip to content

Commit be3f6ff

Browse files
authored
Update test.js
1 parent 317f1d4 commit be3f6ff

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test.js

Lines changed: 3 additions & 3 deletions
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中设置你的 tcUrl 参数');
5-
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', 'live', 'B011', 'rtmp://<rtmp_server>/<app>');
4+
alert('请在test.js中设置你的 播放参数');
5+
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', '<app>', '<streamName>', 'rtmp://<rtmp_server>/<app>');
66
player.canvas.style['height'] = '100%';
7-
document.getElementById("vidCont").appendChild(player.canvas);
7+
document.getElementById("vidCont").appendChild(player.canvas);

0 commit comments

Comments
 (0)