这个库来自于:https://github.com/ChihChengYang/wfs.js 根据自己的项目需求,改进了几个地方:
- 更改了与服务端的交互
- 过滤音频数据,后期再支持
- 第一次找到I帧再放到缓存 ================ wfs.js - html5 player for raw h.264 streams. ================
A javascript library which implements websocket client for watching and focusing on raw h.264 live streams in your browser that works directly on top of a standard HTML5 element and MediaSource Extensions.
git clone https://github.com/Yordroid/wfs.js
wfs.js
-
setup node.js/npm dev environement
-
cd wfs.js
-
npm install
-
npm run build