File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments