mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
support HLS, refine the dir use app
This commit is contained in:
parent
57ea56970d
commit
04cfe20279
7 changed files with 74 additions and 20 deletions
|
@ -13,6 +13,8 @@ vhost __defaultVhost__ {
|
|||
gop_cache on;
|
||||
hls on;
|
||||
hls_path ./objs/nginx/html;
|
||||
hls_fragment 10;
|
||||
hls_window 60;
|
||||
}
|
||||
# the vhost disabled.
|
||||
vhost removed.vhost.com {
|
||||
|
@ -39,6 +41,12 @@ vhost no-hls.vhost.com {
|
|||
# in a word, the hls_path is for vhost.
|
||||
# default: ./objs/nginx/html
|
||||
hls_path /data/nginx/html;
|
||||
# the hls fragment in seconds, the duration of a piece of ts.
|
||||
# default: 10
|
||||
hls_fragment 10;
|
||||
# the hls window in seconds, the number of ts in m3u8.
|
||||
# default: 60
|
||||
hls_window 60;
|
||||
}
|
||||
# the vhost with hls disabled.
|
||||
vhost no-hls.vhost.com {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue