Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AXeL-dev opened this issue Mar 4, 2022 · 0 comments

Comments

@AXeL-dev
Copy link
Owner

AXeL-dev commented Mar 4, 2022

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant