Skip to content

Commit 581c480

Browse files
authored
Update README.md
1 parent a4e0d61 commit 581c480

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Web-Rtmp
22
在网页上播放RTMP视频流,通过Websocket。
33

4-
# 基本原理
4+
## 基本原理
55
- 服务端使用 [websockify](https://github.com/kanaka/websockify) 中转一个rtmp服务器地址。 ([yingDev的fork](https://github.com/yingDev/websockify) 去掉了base64子协议检查)
66

77
```bash
@@ -16,15 +16,15 @@
1616
decoder.decode(frame);
1717
```
1818

19-
# 使用
19+
## 使用
2020
```js
2121
//比如 rtmp://helloworld.com/live/abc ---> app='live', streamName='abc', rtmp_server='helloworld.com'
2222
var player = new WebRtmpPlayer('ws://127.0.0.1:1999', '<app>', '<streamName>', 'rtmp://<rtmp_server>/<app>');
2323
player.canvas.style['height'] = '100%';
2424
document.getElementById("vidCont").appendChild(player.canvas);
2525
```
2626

27-
# 运行
27+
## 运行
2828
```bash
2929
git clone https://github.com/yingDev/Web-Rtmp.git
3030
cd Web-Rtmp
@@ -44,12 +44,12 @@ webpack -w
4444
open index.html
4545
```
4646

47-
# 局限
47+
## 局限
4848
- Broadway:
4949
<blockquote> The decoder ...does not support weighted prediction for P-frames and CABAC entropy encoding...</blockquote>
5050

5151

52-
# 参考资料
52+
## 参考资料
5353
- Real-Time Messaging Protocol (RTMP) specification <br>
5454
http://www.adobe.com/devnet/rtmp.html
5555

0 commit comments

Comments
 (0)