Skip to content

Commit 11761ca

Browse files
committed
Default config like example in the readme
1 parent 66b0d00 commit 11761ca

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Diff for: README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Simple and efficient live broadcast server:
2020
#### Supported encoding formats
2121
- H264
2222
- AAC
23-
- sMP3
23+
- MP3
2424

2525
## Installation
2626
After directly downloading the compiled [binary file](https://github.com/gwuhaolin/livego/releases), execute it on the command line.
@@ -48,8 +48,9 @@ Usage of ./livego:
4848
--write_timeout int write time out (default 10)
4949
```
5050
2. Start the service: execute the livego binary file or `make run` to start the livego service;
51-
3. Upstream push: Push the video stream to `rtmp://localhost:1935/live/movie` through the` RTMP` protocol, for example, use `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/movie` push;
52-
4. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
51+
3. Get a channelkey `curl http://localhost:8090/control/get?room=movie` and copy data like your channelkey.
52+
4. Upstream push: Push the video stream to `rtmp://localhost:1935/live/movie`(`rtmp://localhost:1935/{appname}/{channelkey}`) through the` RTMP` protocol, for example, use `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/live/movie` push;
53+
5. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
5354
-`RTMP`:`rtmp://localhost:1935/live/movie`
5455
-`FLV`:`http://127.0.0.1:7001/live/movie.flv`
5556
-`HLS`:`http://127.0.0.1:7002/live/movie.m3u8`

Diff for: configure/liveconfig.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ var defaultConf = ServerCfg{
6565
ReadTimeout: 10,
6666
GopNum: 1,
6767
Server: []Application{{
68-
Appname: "livego",
68+
Appname: "live",
6969
Live: true,
7070
Hls: true,
7171
StaticPush: nil,
@@ -108,7 +108,7 @@ func LoadConfig() {
108108
Config.AddConfigPath(".")
109109
err := Config.ReadInConfig()
110110
if err != nil {
111-
log.Error(err)
111+
log.Warning(err)
112112
log.Info("Using default config")
113113
}
114114

Diff for: livego.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@
1717
# api_addr: ":8090"
1818

1919
server:
20-
- appname: livego
20+
- appname: live
2121
live: true
2222
hls: true

0 commit comments

Comments
 (0)