winlin

enable hls for push flv.

@@ -4,6 +4,11 @@ @@ -4,6 +4,11 @@
4 4
5 listen 1935; 5 listen 1935;
6 max_connections 1000; 6 max_connections 1000;
  7 +http_server {
  8 + enabled on;
  9 + listen 8080;
  10 + dir ./objs/nginx/html;
  11 +}
7 stream_caster { 12 stream_caster {
8 enabled on; 13 enabled on;
9 caster flv; 14 caster flv;
@@ -11,4 +16,12 @@ stream_caster { @@ -11,4 +16,12 @@ stream_caster {
11 listen 8936; 16 listen 8936;
12 } 17 }
13 vhost __defaultVhost__ { 18 vhost __defaultVhost__ {
  19 + hls {
  20 + enabled on;
  21 + hls_fragment 10;
  22 + hls_window 60;
  23 + hls_path ./objs/nginx/html;
  24 + hls_m3u8_file [app]/[stream].m3u8;
  25 + hls_ts_file [app]/[stream]-[seq].ts;
  26 + }
14 } 27 }