基本原理
- 服務端
使用 [websockify](https://github.com/kanaka/websockify) wrap 一個 rtmp 服務器地址。 ([yingDev的fork](https://github.com/yingDev/websockify) 增加了base64子協議檢查)
從rtmp中提取h264流,通過websocket傳送;rtmp服務器采用的是AdobeMediaServer
啟動websocket代理:./websockify.py 1999 <rtmp_server>:1935
- 瀏覽器
使用 [node-rtmpapi](https://github.com/delian/node-rtmpapi) 解析 RTMP 協議,完成握手和通信。 ([yingDev的fork](https://github.com/yingDev/node-rtmpapi) 增加了瀏覽器支持、修正了幾個錯誤)
使用webpack打包js