Skip to content

Commit 9f4d00b

Browse files
应元东应元东
authored andcommitted
update
1 parent a106488 commit 9f4d00b

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
# 使用
1919
```js
20-
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', 'live', 'B011', 'rtmp://<rtmp_server>live');
20+
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', 'live', 'B011', 'rtmp://<rtmp_server>/<app>');
2121
player.canvas.style['height'] = '100%';
2222
document.getElementById("vidCont").appendChild(player.canvas);
2323
```
@@ -40,7 +40,7 @@ open index.html
4040

4141
# 局限
4242
- Broadway:
43-
> The decoder ...does not support weighted prediction for P-frames and CABAC entropy encoding...
43+
<blockquote> The decoder ...does not support weighted prediction for P-frames and CABAC entropy encoding...</blockquote>
4444

4545
# 参考资料
4646
- Real-Time Messaging Protocol (RTMP) specification <br>

test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const WebRtmpPlayer = require('./WebRtmpPlayer');
22

3-
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', 'live', 'B011', 'rtmp://video.7uan7uan.com/live');
3+
//note: tcUrl是原始rtmp地址,不含流名称。参见rtmp spec
4+
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', 'live', 'B011', 'rtmp://<rtmp_server>/<app>');
45
player.canvas.style['height'] = '100%';
56
document.getElementById("vidCont").appendChild(player.canvas);

0 commit comments

Comments
 (0)