Skip to content

Commit 782be18

Browse files
author
吴浩麟
committed
docs: 修复文档
close #95
1 parent 2b9df25 commit 782be18

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Diff for: README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ Run `docker run -p 1935:1935 -p 7001:7001 -p 7002:7002 -p 8090:8090 -d gwuhaolin
3939

4040
## Use
4141
1. Start the service: execute the livego binary file or `make run` to start the livego service;
42-
2. Get a channelkey from `http://localhost:8090/control/get?room=movie` and copy data like your channelkey.
43-
3. Upstream push: Push the video stream to `rtmp://localhost:1935/{appname}/{channelkey}` through the` RTMP` protocol(default appname is `live`), for example, use `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/{appname}/{channelkey}` push;
42+
2. Get a channelkey(used for push the video stream) from `http://localhost:8090/control/get?room=movie` and copy data like your channelkey.
43+
3. Upstream push: Push the video stream to `rtmp://localhost:1935/{appname}/{channelkey}` through the` RTMP` protocol(default appname is `live`), for example, use `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/{appname}/{channelkey}` push([download demo flv](https://s3plus.meituan.net/v1/mss_7e425c4d9dcb4bb4918bbfa2779e6de1/mpack/default/demo.flv));
4444
4. Downstream playback: The following three playback protocols are supported, and the playback address is as follows:
45-
- `RTMP`:`rtmp://localhost:1935/{appname}/{channelkey}`
46-
- `FLV`:`http://127.0.0.1:7001/{appname}/{channelkey}.flv`
47-
- `HLS`:`http://127.0.0.1:7002/{appname}/{channelkey}.m3u8`
45+
- `RTMP`:`rtmp://localhost:1935/{appname}/movie`
46+
- `FLV`:`http://127.0.0.1:7001/{appname}/movie.flv`
47+
- `HLS`:`http://127.0.0.1:7002/{appname}/movie.m3u8`
4848

4949
all options:
5050
```bash

Diff for: README_cn.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737

3838
## 使用
3939
1. 启动服务:执行 `livego` 二进制文件启动 livego 服务;
40-
2. 访问 `http://localhost:8090/control/get?room=movie` 获取一个房间的 channelkey.
41-
3. 推流: 通过`RTMP`协议推送视频流到地址 `rtmp://localhost:1935/{appname}/{channelkey}` (appname默认是`live`), 例如: 使用 `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/{appname}/{channelkey}` 推流;
40+
2. 访问 `http://localhost:8090/control/get?room=movie` 获取一个房间的 channelkey(channelkey用于推流,movie用于播放).
41+
3. 推流: 通过`RTMP`协议推送视频流到地址 `rtmp://localhost:1935/{appname}/{channelkey}` (appname默认是`live`), 例如: 使用 `ffmpeg -re -i demo.flv -c copy -f flv rtmp://localhost:1935/{appname}/{channelkey}` 推流([下载demo flv](https://s3plus.meituan.net/v1/mss_7e425c4d9dcb4bb4918bbfa2779e6de1/mpack/default/demo.flv));
4242
4. 播放: 支持多种播放协议,播放地址如下:
43-
- `RTMP`:`rtmp://localhost:1935/{appname}/{channelkey}`
44-
- `FLV`:`http://127.0.0.1:7001/{appname}/{channelkey}.flv`
45-
- `HLS`:`http://127.0.0.1:7002/{appname}/{channelkey}.m3u8`
43+
- `RTMP`:`rtmp://localhost:1935/{appname}/movie`
44+
- `FLV`:`http://127.0.0.1:7001/{appname}/movie.flv`
45+
- `HLS`:`http://127.0.0.1:7002/{appname}/movie.m3u8`
4646

4747
所有配置项:
4848
```bash

0 commit comments

Comments
 (0)