Hacker News new | ask | show | jobs
by LandOfMightDev 236 days 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.