Live data from Hacker News

Matrix trailer dynamically uses current time

thechoiceisyours.whatisthematrix.com

1–10 of 198 posts

Re: Matrix trailer dynamically uses current time

#9
post #6

Huh, I wonder how they did that.

Just shooting from the hip, but streaming videos are all done as short 1-5 second chunks that are all listed in a playlist. They could have specific versions of the hour:minute with a specific playlist that includes the correct segment. When you click, the time is checked and the correct playlist is sent down the wire.

Edit: I opened up the dev tools, and did not see the typical HLS style segments. I saw several MP4 files intro/outro/etc. They could still have the segments ready to go, serve up the intro to buy time for the server to ```ffmpeg -i time.mp4 -c:v copy -c:a copy output.mp4``` type of thing before serving to you

Post reply on HN