Skip to content

Commit 8fba861

Browse files
authored
Update README.md
1 parent d887ee0 commit 8fba861

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,21 @@
22
在网页上播放RTMP视频流,通过Websocket。
33

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

78
```bash
89
./websockify.py 1999 <rtmp_server>:1935
910
```
10-
- 浏览器中使用 [node-rtmpapi](https://github.com/delian/node-rtmpapi) 解析 RTMP 协议,完成握手和通信。 ([yingDev的fork](https://github.com/yingDev/node-rtmpapi) 增加了浏览器支持、修正了几个错误)
11+
- 浏览器
12+
- 使用 [node-rtmpapi](https://github.com/delian/node-rtmpapi) 解析 RTMP 协议,完成握手和通信。 ([yingDev的fork](https://github.com/yingDev/node-rtmpapi) 增加了浏览器支持、修正了几个错误)
1113

12-
- 提取其中的 H264 视频流
14+
- 提取其中的 H264 视频流
1315

14-
- 发送给 [Broadway](https://github.com/mbebenita/Broadway) 解码
15-
```js
16+
- 喂给 [Broadway](https://github.com/mbebenita/Broadway) 解码
17+
```js
1618
decoder.decode(frame);
17-
```
19+
```
1820

1921
## 使用
2022
```js

0 commit comments

Comments
 (0)