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 👀? (based on a peer to peer architecture? just to avoid the need of a server)
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:
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: