mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Update README.md
This commit is contained in:
parent
41fcda1d86
commit
ec28513941
1 changed files with 10 additions and 6 deletions
16
README.md
16
README.md
|
@ -41,22 +41,26 @@ For example, use ffmpeg to publish:
|
||||||
sleep 1; \
|
sleep 1; \
|
||||||
done
|
done
|
||||||
</pre>
|
</pre>
|
||||||
step 6: play live stream. add server ip to hosts as dev:<br/>
|
step 6: add server ip to hosts as dev. <br/>
|
||||||
# /etc/hosts <br/>
|
<pre>
|
||||||
# C:\Windows\System32\drivers\etc\hosts <br/>
|
# edit the folowing file:
|
||||||
192.168.2.111 dev <br/>
|
# linux: /etc/hosts
|
||||||
|
# windows: C:\Windows\System32\drivers\etc\hosts
|
||||||
|
192.168.2.111 dev
|
||||||
|
</pre>
|
||||||
|
step 7: play live stream. <br/>
|
||||||
<pre>
|
<pre>
|
||||||
rtmp url: rtmp://dev:1935/live/livestream
|
rtmp url: rtmp://dev:1935/live/livestream
|
||||||
m3u8 url: http://dev:80/live/livestream.m3u8
|
m3u8 url: http://dev:80/live/livestream.m3u8
|
||||||
</pre>
|
</pre>
|
||||||
step 7: play live stream auto transcoded<br/>
|
step 8: play live stream auto transcoded<br/>
|
||||||
<pre>
|
<pre>
|
||||||
rtmp url: rtmp://dev:1935/live/livestream_ld
|
rtmp url: rtmp://dev:1935/live/livestream_ld
|
||||||
m3u8 url: http://dev:80/live/livestream_ld.m3u8
|
m3u8 url: http://dev:80/live/livestream_ld.m3u8
|
||||||
rtmp url: rtmp://dev:1935/live/livestream_sd
|
rtmp url: rtmp://dev:1935/live/livestream_sd
|
||||||
m3u8 url: http://dev:80/live/livestream_sd.m3u8
|
m3u8 url: http://dev:80/live/livestream_sd.m3u8
|
||||||
</pre>
|
</pre>
|
||||||
step 8: play live stream auto forwarded, the hls dir change to /forward<br/>
|
step 9: play live stream auto forwarded, the hls dir change to /forward<br/>
|
||||||
<pre>
|
<pre>
|
||||||
rtmp url: rtmp://dev:19350/live/livestream_ld
|
rtmp url: rtmp://dev:19350/live/livestream_ld
|
||||||
m3u8 url: http://dev:80/forward/live/livestream_ld.m3u8
|
m3u8 url: http://dev:80/forward/live/livestream_ld.m3u8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue