Matt Luo
Matt Luo4mo ago

YouTube video watch party design

I have a use case of integrating with the YouTube player iframe API, so that there can be a watch party of multiple users watching the same YouTube video (w/ the video playing at the playing time for all watchers). How would I design a situation like this? What I'm currently thinking is writing the currentPlayingTime to the Convex database every time someone clicks somewhere on the playing bar. Alternatively, I could choose some repeating write logic, e.g. write the current playtime every second or so, but that would cause the video to have a skipping effect since YouTube API can only play to the nearest second.
0 Replies
No replies yetBe the first to reply to this messageJoin