chenxiaoqino / getusermedia-to-rtmp

186 stars 61 forks source link

webtransport (http3) or raw socket? #21

Open ROBERT-MCDOWELL opened 3 years ago

ROBERT-MCDOWELL commented 3 years ago

Is this project can easily replace socket.io to webtransport or raw socket (socket.tcp or socket.udp) ? Thanks

ROBERT-MCDOWELL commented 3 years ago

also is the stream can be directly encoded in mp4 on client side with this project? https://github.com/kazuki/video-codec.js

chenxiaoqino commented 3 years ago

For HTTP/3 related: you are welcomed to experiment with it and open a pull request! For encoding: I believe FFMPEG (compiled via emscripten) support many codecs, and the project you referred to only support a subset of it. You might need additional flags when compiling FFMPEG in emscripten to include some codecs.

ROBERT-MCDOWELL commented 3 years ago

Web-transport is still in beta state and have some code changes too, it should be a release official version in december. ffmpeg in webassembly weight more than 16MB, That's why I thought video-codec.js could be a good alternative to encode/decode standard web video (and audio) codecs.