howardchung / watchparty

Watch anything together in-sync with your friends

Home Page:https://www.watchparty.me

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allow syncing time for HLS streams

howardchung opened this issue · comments

Currently this doesn't work quite right because just jumping everyone to the same timestamp doesn't match since the playtime is based on how long the user has been watching the stream.

One fix I think is to emit time delta events on seek and it's an m3u8 stream, and update the viewer's time by the delta.
However--users always join the stream near the live edge. So we might also want to sync by sending the wall clock time to seek to, and setting each client based on that