winlin

support HLS(m3u8)

正在显示 1 个修改的文件 包含 6 行增加2 行删除
@@ -19,7 +19,11 @@ step 2: start srs <br/> @@ -19,7 +19,11 @@ step 2: start srs <br/>
19 <pre> 19 <pre>
20 ./objs/simple_rtmp_server -c conf/srs.conf 20 ./objs/simple_rtmp_server -c conf/srs.conf
21 </pre> 21 </pre>
22 -step 3: publish live stream <br/> 22 +step 3(optional): start nginx for HLS <br/>
  23 +<pre>
  24 +sudo ./objs/nginx/_release/sbin/nginx
  25 +</pre>
  26 +step 4: publish live stream <br/>
23 <pre> 27 <pre>
24 FMS URL: rtmp://127.0.0.1:1935/live 28 FMS URL: rtmp://127.0.0.1:1935/live
25 Stream: livestream 29 Stream: livestream
@@ -27,7 +31,7 @@ For example, use ffmpeg to publish: @@ -27,7 +31,7 @@ For example, use ffmpeg to publish:
27 ffmpeg -re -i source.flv -vcodec copy -acodec copy \ 31 ffmpeg -re -i source.flv -vcodec copy -acodec copy \
28 -f flv -y rtmp://127.0.0.1:1935/live/livestream 32 -f flv -y rtmp://127.0.0.1:1935/live/livestream
29 </pre> 33 </pre>
30 -step 4: play live stream <br/> 34 +step 5: play live stream <br/>
31 <pre> 35 <pre>
32 rtmp url: rtmp://127.0.0.1:1935/live/livestream 36 rtmp url: rtmp://127.0.0.1:1935/live/livestream
33 m3u8 url: http://127.0.0.1:1935/live/livestream.m3u8 37 m3u8 url: http://127.0.0.1:1935/live/livestream.m3u8