4 ms·
Ask HN: Modern live streaming solutions for the web
Now that Blab has shut down, it renewed my interest in live streaming. Last time I approached the problem, the consensus was to use Flash for RTMP. After Chrome has renounced support for it, I would like to know what other solutions are currently available. I know WebRTC is one, but peer-to-peer streaming has its limitations. How did services like Blab do it? Is it through Websockets?
- doubleorseven 10y agoCheck out HLS. Based on http so no special ports or udp. Also support HTTPS. And you should reconsider WebRTC, it's amazing.
- freestockoption 10y agoI've been wanting to try HLS. Seems simple as there's an FFMPEG plugin to generate the folder structure and all I have to do is symlink it to the webserver
- alanz1223 10y agoHow exactly would I stream to the server? Say after I have the camera/audio feed.
- kirankn 10y agoWith HLS, you process the feed through an encoder (possibly FFMPEG or 3rd party solutions or hardware) which will generate the video packets in various bit rate profiles. It will also generate a playlist file. You just provide a link to the playlist. Check out the HLS specs, it's fairly simple to understand.
- rudimental 10y agoBlab used WebRTC. They did this by using OpenTok (made by TokBox). https://tokbox.com/ https://tokbox.com/ https://tokbox.com/developer/ https://tokbox.com/developer/ Source: I work there :)
- billconan 10y agothere is a standard called mediasource api https://developer.mozilla.org/en-US/docs/Web/API/MediaSource https://developer.mozilla.org/en-US/docs/Web/API/MediaSource I tried video streaming with it.