2014-04-05 05:56:14 +00:00
|
|
|
# the config for srs to delivery hls
|
2015-04-29 09:06:32 +00:00
|
|
|
# @see https://github.com/simple-rtmp-server/srs/wiki/v1_CN_SampleHLS
|
2014-04-05 05:56:14 +00:00
|
|
|
# @see full.conf for detail config.
|
|
|
|
|
|
|
|
listen 1935;
|
2014-07-26 07:34:45 +00:00
|
|
|
max_connections 1000;
|
2015-01-22 01:34:33 +00:00
|
|
|
http_server {
|
2014-04-05 05:56:14 +00:00
|
|
|
enabled on;
|
|
|
|
listen 8080;
|
|
|
|
dir ./objs/nginx/html;
|
|
|
|
}
|
|
|
|
vhost __defaultVhost__ {
|
|
|
|
hls {
|
|
|
|
enabled on;
|
|
|
|
hls_fragment 10;
|
|
|
|
hls_window 60;
|
2015-03-30 04:44:04 +00:00
|
|
|
hls_path ./objs/nginx/html;
|
|
|
|
hls_m3u8_file [app]/[stream].m3u8;
|
|
|
|
hls_ts_file [app]/[stream]-[seq].ts;
|
2014-04-05 05:56:14 +00:00
|
|
|
}
|
|
|
|
}
|