Settings

Theme

Show HN: Created a Live Anime Channel, no server necessary

animaxreboot.pages.dev

2 points by LandOfMightDev 2 months ago · 3 comments · 1 min read

Reader

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 !

LandOfMightDevOP 2 months 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 2 months ago

It looks like you're pulling from the Internet Archive? What does "no server necessary" even mean in this context?

  • LandOfMightDevOP 2 months 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.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection