1.0.0 • Published 7 months ago

simple-rtmp v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

simple-rtmp

RTMP tools for real-time streaming

npm i -g simple-rtmp

Server

Run the main server

simple-rtmp-server [--port 8035] [--host 0.0.0.0] [--cert <fullchain.pem>] [--key <privkey.pem>]

Recommended to generate a SSL certificate with Certbot

Create a stream key for a streamer

simple-rtmp-keygen <name> [--expires <ms>]

Client

A streamer runs the client which is a local server

simple-rtmp <server-key> [--port 1935]

In OBS or equivalent, configure it like rtmp://localhost:1935/live, also set the stream key

When the stream starts, this will transmit to the main server

Watcher

Anyone can access to any stream like so http://<main-server-ip>:8035/live/<name>.flv

You could use the lib pro-flv.js in the browser for playback

Example here https://github.com/LuKks/rtmp-frontend

License

MIT