Update README.md

pull/2374/head
winlin 4 years ago
parent 7fcafef6c4
commit 3cdd1c4e66

@ -14,8 +14,8 @@ SRS is a simple, high efficiency and realtime video server, supports RTMP/WebRTC
<a name="product"></a>
## Usage
Recommend running SRS by [docker][docker-srs4], images is [here](https://hub.docker.com/r/ossrs/srs/tags) or [there](https://cr.console.aliyun.com/repository/cn-hangzhou/ossrs/srs/images).
Please set the CANDIDATE ([CN][v4_CN_WebRTC#config-candidate],[EN][v4_EN_WebRTC#config-candidate]) for WebRTC:
Run SRS by [docker][docker-srs4], images is [here](https://hub.docker.com/r/ossrs/srs/tags) or [there](https://cr.console.aliyun.com/repository/cn-hangzhou/ossrs/srs/images),
please set the CANDIDATE ([CN][v4_CN_WebRTC#config-candidate],[EN][v4_EN_WebRTC#config-candidate]) if WebRTC enabled:
```bash
docker run --rm -it -p 1935:1935 -p 1985:1985 -p 8080:8080 \
@ -32,7 +32,7 @@ cd srs/trunk && ./configure && make && ./objs/srs -c conf/srs.conf
Open [http://localhost:8080/](http://localhost:8080/) to check it, then publish
[stream](https://github.com/ossrs/srs/blob/3.0release/trunk/doc/source.flv) by FFmpeg.
It's also ok to publish by [H5](http://localhost:8080/players/rtc_publisher.html?autostart=true) if WebRTC is enabled:
It's also able to [publish by H5](http://localhost:8080/players/rtc_publisher.html?autostart=true) if WebRTC is enabled:
```bash
docker run --rm -it --network=host ossrs/srs:encoder \
@ -41,7 +41,7 @@ docker run --rm -it --network=host ossrs/srs:encoder \
Play the following streams by [players](https://ossrs.net):
* VLC(RTMP): rtmp://localhost/live/livestream
* RTMP (by [VLC](https://www.videolan.org/)): rtmp://localhost/live/livestream
* H5(HTTP-FLV): [http://localhost:8080/live/livestream.flv](http://localhost:8080/players/srs_player.html?autostart=true&stream=livestream.flv&port=8080&schema=http)
* H5(HLS): [http://localhost:8080/live/livestream.m3u8](http://localhost:8080/players/srs_player.html?autostart=true&stream=livestream.m3u8&port=8080&schema=http)
* H5(WebRTC): [webrtc://localhost/live/livestream](http://localhost:8080/players/rtc_player.html?autostart=true)

Loading…
Cancel
Save