2019-03-11 22:10:15 +01:00
|
|
|
# MovieNight stream server
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
This is a single-instance streaming server with chat. Originally written to
|
|
|
|
replace Rabbit as the platform for watching movies with a group of people
|
|
|
|
online.
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
## Build requirements
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
- Go 1.12 or newer
|
|
|
|
- GNU Make
|
2019-03-10 16:42:12 +01:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
To just download and run:
|
2019-03-10 16:42:12 +01:00
|
|
|
```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-11 22:10:15 +01:00
|
|
|
MovieNight -l :8089 -k longSecurityKey
|
2019-03-10 16:42:12 +01:00
|
|
|
```
|
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
To download and compile for development:
|
|
|
|
```bash
|
|
|
|
git clone github.com/zorchenhimer/MovieNight
|
|
|
|
cd MovieNight
|
|
|
|
make
|
|
|
|
./MovieNight -l :8089 -k longSecurityKey
|
|
|
|
```
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
## Usage
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
Now you can use OBS to push a stream to the server. Set the stream URL to
|
|
|
|
```text
|
|
|
|
rtmp://your.domain.host/live
|
|
|
|
```
|
|
|
|
and enter the stream key.
|
2019-03-10 16:42:12 +01:00
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
Now you can view the stream at
|
2019-03-10 18:41:06 +01:00
|
|
|
|
|
|
|
```text
|
2019-03-10 16:42:12 +01:00
|
|
|
http://your.domain.host:8089/
|
|
|
|
```
|
|
|
|
|
2019-03-11 22:10:15 +01:00
|
|
|
The default listen port is `:8089`. It can be changed by providing a new port
|
|
|
|
at startup:
|
2019-03-10 16:42:12 +01:00
|
|
|
|
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-11 22:10:15 +01:00
|
|
|
```
|