Skip to content

Hquestion/H264WSPlayer

Repository files navigation

H264 Player

A websocket h264 player written in React.

forked from https://github.com/udevbe/ffmpeg-h264-wasm.git

Getting Start

start

yarn
yarn run start

build

yarn run build

Fixed Bugs

  • rendered green screen on different dimensions
  • green edge when use gl.pixelStorei(gl.UNPACK_ALIGNMENT, 1);

Build libav with emscripten

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.

Download Docker

Check the Docker official website for help.

Get emscripten image

docker pull emscripten/emsdk

Run build-libav.sh

On Windows:

npm run build:libav:win

Or on Linux:

npm run build:libav:linux

Useful Links

About

A h264 player with websocket written in React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published