https://github.com/prashantrahul141/playinsync-server
Server code for PlayInSync.
https://github.com/prashantrahul141/playinsync-server
express nodejs typescript web-sockets
Last synced: 10 months ago
JSON representation
Server code for PlayInSync.
- Host: GitHub
- URL: https://github.com/prashantrahul141/playinsync-server
- Owner: prashantrahul141
- License: mit
- Created: 2022-11-17T09:58:23.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-16T13:01:24.000Z (almost 3 years ago)
- Last Synced: 2025-01-22T02:25:18.124Z (12 months ago)
- Topics: express, nodejs, typescript, web-sockets
- Language: TypeScript
- Homepage:
- Size: 67.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
###
Play offline videos in Sync across the internet.
# Server Code for PlayInSync
This contains the server code for PlayInSync written in TypeScript using Express and Socket.io, Any changes made on the client (videoplayback) will be sent to the server and synced with all other clients.
### How?
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.
### Why?
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 client see - https://github.com/prashantrahul141/PlayInSync-Client
# 🛠️ Installation & Set Up
##### 1. Clone the repo
```sh
git clone https://github.com/prashantrahul141/PlayInSync-Client
```
##### 2. Install packages
```sh
npm i
```
##### 3. Run index.js using node
```sh
npm start
```
##### 4. Expose it to the Internet.
By default the app will listen to port 3000 and localhost, expose that to the internet to be able to use it from anywhere.
# 💻 Technologies used
- TypeScript
- Express
- Socket.io