Frontend
🚀 Run
Setup a .env file or
equivalent environment variables:
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.
node index.js
Be aware, that this application is designed for Linux systems!
To use together with the frontend, run with docker.
🛠️ Architecture
API
- Endpoints to add a channel, get all channels, get selected channel and set selected channel
WebSockets
channel-addedandchannel-selectedevents will be send to all connected clients- chat messages:
send-chat-messageandchat-message - users:
user-connectedanduser-disconnected