youtube-viewer icon indicating copy to clipboard operation
youtube-viewer copied to clipboard

[OP] Feature request: Ability to sync videos playing between multiple clients

Open AXeL-dev opened this issue 3 years ago • 0 comments

As described in the title, this feature is quite OP (Over Power) since it will require some considerable work to be implemented.

Below some ideas on how this can be achieved:

  • With an auth system: Add an authentification system to simplify connection/identification between clients?
  • Without an auth system: This could be simply achieved by providing a link that one of the users can share with the other(s), instead of a whole auth system that may not be so useful.

For the syncing part, youtube player API already provides event listeners for the player actions (like play, pause & resume, etc..), so listening to the player events won't be a challenge, the rest would be to use one of the following protocols/technologies to communicate between the clients in real-time:

  • WebSockets (socket.io)
  • WebRTC
  • Implement a custom protocol :eyes:? (based on a peer to peer architecture? just to avoid the need of a server)

AXeL-dev avatar Mar 04 '22 20:03 AXeL-dev