Some minor fixes in readme and linting errors
This commit is contained in:
parent
3276295421
commit
df6b6da044
|
@ -144,7 +144,7 @@ func (cl *Client) Host() string {
|
|||
return host
|
||||
}
|
||||
|
||||
var dumbSpaces []string = []string{
|
||||
var dumbSpaces = []string{
|
||||
"\n",
|
||||
"\t",
|
||||
"\r",
|
||||
|
|
2
main.go
2
main.go
|
@ -16,7 +16,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
addr = flag.String("l", ":8089", "host:port of the go-rtmp-server")
|
||||
addr = flag.String("l", ":8089", "host:port of the MovieNight")
|
||||
sKey = flag.String("k", "", "Stream key, to protect your stream")
|
||||
)
|
||||
|
||||
|
|
16
readme.md
16
readme.md
|
@ -9,33 +9,31 @@ You need golang to build all tools.
|
|||
## Install
|
||||
|
||||
```bash
|
||||
go get -u -v github.com/netroby/go-rtmp-server
|
||||
go get -u -v github.com/zorchenhimer/MovieNight
|
||||
|
||||
~/go/bin/go-rtmp-server -l :8089 -k longSecurityKey
|
||||
~/go/bin/MovieNight -l :8089 -k longSecurityKey
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
|
||||
now you can using obs to push stream to rtmp server
|
||||
|
||||
|
||||
the stream url maybe ```rtmp://your.domain.host/live?key=longSecurityKey```
|
||||
|
||||
You can using obs to stream
|
||||
|
||||
Now you may visit the demo at
|
||||
```
|
||||
|
||||
```text
|
||||
http://your.domain.host:8089/
|
||||
```
|
||||
|
||||
the :8089 is the default listen port of the http server. and you can change it as you want
|
||||
|
||||
```
|
||||
Usage of .\go-rtmp-server.exe:
|
||||
```text
|
||||
Usage of .\MovieNight.exe:
|
||||
-k string
|
||||
Stream key, to protect your stream
|
||||
-l string
|
||||
host:port of the go-rtmp-server (default ":8089")
|
||||
host:port of the MovieNight (default ":8089")
|
||||
```
|
Loading…
Reference in New Issue