In short, I created an angular application that parses a list of video urls into a json structure with the duration of each video and the position in the playlist. whenever a person loads the channel, it calculates the video that should be playing. So I just take the route (channel name), and embedded it into an html site, threw in a chatango embed chat just for good measure! No server needed and completely live !
Comments
LandOfMightDev•2h ago
forgot to mention, it also calculates the video position, to the minute by taking the time the channel was created, calculating the difference between the current time and the time the channel was created and taking the modulus of that and the total duration of all of the videos combined. You then use that to calculate which video should be playing and the difference between current time and the video duration is the position in the video that should sync.
krapp•2h ago
It looks like you're pulling from the Internet Archive? What does "no server necessary" even mean in this context?
LandOfMightDev•2h ago
the live stream runs on its own, i dont host the files or have a server syncing the videos/serving. So basically, you can do this without any costs. Traditionally, you would need to use something like OBS and have a machine that both holds the video files, and "streams" them to clients.
LandOfMightDev•2h ago