This example is based on GoldVideo open source project (https://github.com/goldvideo/h265player, It is H.265 player for web)
You can download the code and run the demo.
$ npm i goldvideo-player # @see https://www.npmjs.com/package/goldvideo-player
$ npm install # maybe need input `npm audit fix` etc.
$ npm run dev # @see package.json- Copy lib files(
libffmpeg.js, libffmpeg.wasm) todist/libfrom h265player/dist/lib. or compile from docoder_wasm module by self. This example includes these lib files already.
server {
listen 8000;
location /example/greenplayer {
root <path>/goldvideo;
index index.html index.htm;
autoindex on;
}
}visit: http://127.0.0.1:8000/example/greenplayer/demo/demo.html