I'm actually working on a blog post on the state of streaming live from a browser! WebRTC is...a bit of a monster, especially if you want to broadcast one-to-many.
I've been hacking around with using the MediaRecorder API and piping that through WebSockets to a server that publishes via RTMP. It's definitely rough, and browsers de-prioritizing requestAnimationFrame callbacks when the tab isn't in focus kills things, but it's promising. It runs shockingly well on a Glitch instance for what that's worth.
I've been hacking around with using the MediaRecorder API and piping that through WebSockets to a server that publishes via RTMP. It's definitely rough, and browsers de-prioritizing requestAnimationFrame callbacks when the tab isn't in focus kills things, but it's promising. It runs shockingly well on a Glitch instance for what that's worth.
You need a Mux (https://mux.com) stream key for the demo, but you could quickly edit it to use any RTMP URL: https://mmcc-next-streamr.glitch.me/