Functions:
- Get page
- Return HTML
- Get watch page
- Return HTML with video
- Get server time
- Return server time now
- Upload
- File
- Password
- Return the URL
- Request host
- File
- Password
- If good, return host token
- Websocket
- Send seek/play/pause
- Token
- Video timestamp
- Receive seek/play/pause
- Video timestamp
- Time to start
- Send seek/play/pause
Structure
reply:
{
"type": "seek|play|pause|start",
"videoID": "lalalalalala",
"timeStamp": 1234,
"execute_time": 4567,
"token": "abcd1234",
"server_time": 7549785
}
Paths
kitchensync.tech
Landing page/faucet
WebsocketGET /watch/{video_id}
Watch page/api/v1
POST /upload
Start a new sessionPOST /host
Request host token with password