winlin

use hosts to play stream

@@ -41,24 +41,27 @@ For example, use ffmpeg to publish: @@ -41,24 +41,27 @@ For example, use ffmpeg to publish:
41 sleep 1; \ 41 sleep 1; \
42 done 42 done
43 </pre> 43 </pre>
44 -step 6: play live stream <br/> 44 +step 6: play live stream. add server ip to hosts as dev:<br/>
  45 +# /etc/hosts <br/>
  46 +# C:\Windows\System32\drivers\etc\hosts <br/>
  47 +192.168.2.111 dev <br/>
45 <pre> 48 <pre>
46 -rtmp url: rtmp://127.0.0.1:1935/live/livestream  
47 -m3u8 url: http://127.0.0.1:80/live/livestream.m3u8 49 +rtmp url: rtmp://dev:1935/live/livestream
  50 +m3u8 url: http://dev:80/live/livestream.m3u8
48 </pre> 51 </pre>
49 step 7: play live stream auto transcoded<br/> 52 step 7: play live stream auto transcoded<br/>
50 <pre> 53 <pre>
51 -rtmp url: rtmp://127.0.0.1:1935/live/livestream_ld  
52 -m3u8 url: http://127.0.0.1:80/live/livestream_ld.m3u8  
53 -rtmp url: rtmp://127.0.0.1:1935/live/livestream_sd  
54 -m3u8 url: http://127.0.0.1:80/live/livestream_sd.m3u8 54 +rtmp url: rtmp://dev:1935/live/livestream_ld
  55 +m3u8 url: http://dev:80/live/livestream_ld.m3u8
  56 +rtmp url: rtmp://dev:1935/live/livestream_sd
  57 +m3u8 url: http://dev:80/live/livestream_sd.m3u8
55 </pre> 58 </pre>
56 step 8: play live stream auto forwarded, the hls dir change to /forward<br/> 59 step 8: play live stream auto forwarded, the hls dir change to /forward<br/>
57 <pre> 60 <pre>
58 -rtmp url: rtmp://127.0.0.1:19350/live/livestream_ld  
59 -m3u8 url: http://127.0.0.1:80/forward/live/livestream_ld.m3u8  
60 -rtmp url: rtmp://127.0.0.1:19350/live/livestream_sd  
61 -m3u8 url: http://127.0.0.1:80/forward/live/livestream_sd.m3u8 61 +rtmp url: rtmp://dev:19350/live/livestream_ld
  62 +m3u8 url: http://dev:80/forward/live/livestream_ld.m3u8
  63 +rtmp url: rtmp://dev:19350/live/livestream_sd
  64 +m3u8 url: http://dev:80/forward/live/livestream_sd.m3u8
62 </pre> 65 </pre>
63 66
64 ### System Requirements 67 ### System Requirements
This file is too large to display.