https://github.com/natlee/youtube-redirect-player
A player for redirecting youtube videos with using flask and websocket.
https://github.com/natlee/youtube-redirect-player
flask player youtube-redirect
Last synced: 10 days ago
JSON representation
A player for redirecting youtube videos with using flask and websocket.
- Host: GitHub
- URL: https://github.com/natlee/youtube-redirect-player
- Owner: NatLee
- Created: 2023-01-23T16:22:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-26T06:04:08.000Z (over 3 years ago)
- Last Synced: 2025-09-06T11:51:23.194Z (10 months ago)
- Topics: flask, player, youtube-redirect
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Player

This project used to redirect Youtube videos to local server.
And its use flask and websocket as backend.
You can play video anywhere cause the playlist and history will be transferred with websocket.
> This is a side project extended with my other repo [youtube-video-redirector](https://github.com/NatLee/Youtube-Video-Redirector)
## Table
`Playlist` has split into 3 tables.
播放清單被分爲 3 張表
- `DefaultPlaylist`
Default playlist, there are videos played and stored.
預設播放清單,裏面有先前存下的影片
- `RequestPlaylist`
Request playlist, as its name. User can request videos and its will be queued up in the table.
請求播放清單,使用者當下點的影片
- `HistoryPlaylist`
History playlist. Videos played before. The limit of number of records is 200.
歷史播放清單,曾經播過的影片,最大儲存 200 筆
## Requirements
```bash
pip install -r requirements.txt
```
## Usage
Use command below and the service will start on `http://localhost:5000`.
```bash
python main.py
```
## APIs
Check these APIs in `./playlist.py`.