A websocket h264 player written in React.
forked from https://github.com/udevbe/ffmpeg-h264-wasm.git
yarn
yarn run start
yarn run build
- rendered green screen on different dimensions
- green edge when use
gl.pixelStorei(gl.UNPACK_ALIGNMENT, 1)
;
I tried to build libav with emscripten on Mac and Windows, and I failed.Finally,I successfully build it on Docker.So I will introduce how to build with docker.
Check the Docker official website for help.
docker pull emscripten/emsdk
On Windows:
npm run build:libav:win
Or on Linux:
npm run build:libav:linux