Some minor fixes in readme and linting errors

This commit is contained in:
joeyak 2019-03-10 13:41:06 -04:00
parent 3276295421
commit df6b6da044
3 changed files with 12 additions and 14 deletions

View File

@ -144,7 +144,7 @@ func (cl *Client) Host() string {
return host
}
var dumbSpaces []string = []string{
var dumbSpaces = []string{
"\n",
"\t",
"\r",

View File

@ -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")
)

View File

@ -4,38 +4,36 @@ This is a very tiny demo with rtmp protocol server/client side implement.
## Requirement
You need golang to build all tools.
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
You can using obs to stream
Now you may visit the demo at
```
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")
```