This contains the client code for PlayInSync written in TypeScript using Socket.io, Any changes made on the client (videoplayback) will be sent to the server and synced with all other clients.
Everytime someone changes the state of video playback (play/pause, seek, playback speed) the client sends that information to the server, and the server stores them, when all other clients connected to the same server request for changes the server sends those updates it stored previously and the clients update their playback state according to the data recieved.
Since all clients have the video required to sync even before the sync starts, this removes the hassel of streaming video (which leads to loss in quality and drop in fps)
For server see - https://github.com/PlayInSync/PlayInSync-Server
git clone https://github.com/PlayInSync/PlayInSync-Client
3. Put in the server URL
- TypeScript
- Socket.io