2019-03-10 16:42:12 +01:00
|
|
|
# Golang rtmp server demo
|
|
|
|
|
|
|
|
This is a very tiny demo with rtmp protocol server/client side implement.
|
|
|
|
|
|
|
|
## Requirement
|
|
|
|
|
2019-03-10 18:41:06 +01:00
|
|
|
You need golang to build all tools.
|
2019-03-10 16:42:12 +01:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
```bash
|
2019-03-10 18:41:06 +01:00
|
|
|
go get -u -v github.com/zorchenhimer/MovieNight
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-10 18:41:06 +01:00
|
|
|
~/go/bin/MovieNight -l :8089 -k longSecurityKey
|
2019-03-10 16:42:12 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
now you can using obs to push stream to rtmp server
|
|
|
|
|
|
|
|
the stream url maybe ```rtmp://your.domain.host/live?key=longSecurityKey```
|
|
|
|
|
2019-03-10 18:41:06 +01:00
|
|
|
You can using obs to stream
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-10 18:41:06 +01:00
|
|
|
Now you may visit the demo at
|
|
|
|
|
|
|
|
```text
|
2019-03-10 16:42:12 +01:00
|
|
|
http://your.domain.host:8089/
|
|
|
|
```
|
|
|
|
|
|
|
|
the :8089 is the default listen port of the http server. and you can change it as you want
|
|
|
|
|
2019-03-10 18:41:06 +01:00
|
|
|
```text
|
|
|
|
Usage of .\MovieNight.exe:
|
2019-03-10 16:42:12 +01:00
|
|
|
-k string
|
|
|
|
Stream key, to protect your stream
|
|
|
|
-l string
|
2019-03-10 18:41:06 +01:00
|
|
|
host:port of the MovieNight (default ":8089")
|
2019-03-10 16:42:12 +01:00
|
|
|
```
|