Files
IPTV-Restream/backend/README.md
2024-11-19 18:10:57 +00:00

33 lines
934 B
Markdown

# Frontend
⚠️ The Application is currently under active development. A dockerized solution will be provided in the near future! ⚠️
## Run
Setup a `.env` file or
equivalent environment variables:
```env
DEFAULT_CHANNEL_URL=https://mcdn.daserste.de/daserste/de/master.m3u8
STORAGE_PATH=/mnt/streams/recordings
```
The storage directory has to exist. There will be alot of I/O, so it makes sense to mount the storage into ram memory.
Before running, make sure you have `ffmpeg` installed on your system.
```bash
node index.js
```
Be aware, that this application is designed for Linux systems!
## Architecture
### API
- Endpoints to add a channel, get all channels, get selected channel and set selected channel
### WebSockets
- `channel-added` and `channel-selected` events will be send to all connected clients
- chat messages: `send-chat-message` and `chat-message`
- users: `user-connected` and `user-disconnected`