kyle8998 / Vynchronize

Watch videos with friends online with the new real time video synchronization platform
https://www.vynchronize.com/
MIT License
1.17k stars 182 forks source link

Way to sync up to host #104

Open kyle8998 opened 6 years ago

kyle8998 commented 6 years ago

There is no way for viewers to sync to the host if they get disconnected

Joshfindit commented 5 years ago

Suggestion: send an initial "sync" packet on connect.

Also suggest having # urls (such as domain.herokuapp.com/#/r/1) so that a viewer that has to reconnect can refresh the page and still stay in the same room

Joshfindit commented 4 years ago

Having more experience with the app now, I realize that I misinterpreted the issue.

Instead I suggest a "heartbeat". Not exactly sure what the method is that fails when a client is disconnected from the sync, but the symptoms are clear:

Heartbeats are excellent in these cases:

In addition, the heartbeat can be used to relay timestamp sync data

And, to mitigate any problems: