3 ms·
This is so weird, a few weeks ago I was trying to work out (with little knowledge of the technologies involved) how to do almost exactly this, only with video.
by Balarny2 4y ago
This is so weird, a few weeks ago I was trying to work out (with little knowledge of the technologies involved) how to do almost exactly this, only with video. Right down to a control "frontend" and a "play" frontend. Specifically, how to forward a video from X source (say, YouTube or via invidious, but the idea would be that any source could be chosen on the fly) to some kind of HTTP stream that could then be picked up by a device (or multiple devices simultaneously) of choice.
Maybe looking at how this is built will give me some pointers
- greenpresident 4y agoThis is what videolan player (also known als vlc) was originally built for. They built a solution to serve an internal television problem over LAN.
- woodrowbarlow 4y agoyou want an RTMP or FTL server. a source (e.g. something like obs studio, or gstreamer/ffmpeg from command line, or even directly from some action cams like gopro) can publish a video stream, and clients (vlc player, for instance) receive the video as a broadcast (UDP RTP/RTCP, ideally). the protocol handles codecs and keeping the clients in sync (the clients will usually lag slightly behind the source, though -- FTL tries to minimize this). this is how live streams work on twitch/youtube/facebook/etc (except they have to do the media over HTTPS with something like HLS or WebRTC). for instance, project lightspeed (unaffiliated) is a batteries-included self-hosted FTL streaming server and web client that was posted as a "show hn" some time back. https://github.com/GRVYDEV/Project-Lightspeed https://github.com/GRVYDEV/Project-Lightspeed