2021-10-10 13:39:39 +00:00
|
|
|
# vod-rtmp
|
|
|
|
|
|
|
|
## How to run
|
|
|
|
|
2021-10-10 20:35:30 +00:00
|
|
|
1. `apt install docker.io docker-compose`
|
2021-10-10 13:39:39 +00:00
|
|
|
2. `docker-compose build`
|
2021-10-10 20:35:30 +00:00
|
|
|
3. `./gen-selfsigned.sh`
|
|
|
|
4. `docker-compose up`
|
|
|
|
5. `./issue-certificate.sh example.com info@example.com`
|
2021-10-10 23:21:38 +00:00
|
|
|
6. Encoder server = `rtmp://example:1935/live/` key = `stream?pass=supersecret`
|
2021-10-10 20:35:30 +00:00
|
|
|
7. Open a browser and go to `https://example.com` to view your live stream via hls.js
|
2021-10-10 22:12:06 +00:00
|
|
|
|
|
|
|
|
|
|
|
### Powered by
|
2021-10-10 23:21:38 +00:00
|
|
|
- https://github.com/tiangolo/nginx-rtmp-docker
|
|
|
|
- https://github.com/zom-bi/zomstream
|
|
|
|
- https://github.com/Abdisalan/blog-code-examples/tree/master/live-stream-part-3
|