We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 317f1d4 commit be3f6ffCopy full SHA for be3f6ff
1 file changed
test.js
@@ -1,7 +1,7 @@
1
const WebRtmpPlayer = require('./WebRtmpPlayer');
2
3
//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>');
+alert('请在test.js中设置你的 播放参数');
+var player = new WebRtmpPlayer('ws://127.0.0.1:1999', '<app>', '<streamName>', 'rtmp://<rtmp_server>/<app>');
6
player.canvas.style['height'] = '100%';
7
-document.getElementById("vidCont").appendChild(player.canvas);
+document.getElementById("vidCont").appendChild(player.canvas);
0 commit comments