mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #136, support hls without io(in ram). 2.0.112
This commit is contained in:
parent
89b37d3469
commit
a23191497f
14 changed files with 688 additions and 87 deletions
|
@ -455,24 +455,37 @@ vhost with-hls.srs.com {
|
|||
# default: 60
|
||||
hls_window 60;
|
||||
# the error strategy. canbe:
|
||||
# ignore, when error ignore and disable hls.
|
||||
# disconnect, when error disconnect the publish connection.
|
||||
# continue, when error ignore and continue output hls.
|
||||
# ignore, when error ignore and disable hls.
|
||||
# disconnect, when error disconnect the publish connection.
|
||||
# continue, when error ignore and continue output hls.
|
||||
# @see https://github.com/winlinvip/simple-rtmp-server/issues/264
|
||||
# default: ignore
|
||||
hls_on_error ignore;
|
||||
# the hls output path.
|
||||
# the app dir is auto created under the hls_path.
|
||||
# for example, for rtmp stream:
|
||||
# rtmp://127.0.0.1/live/livestream
|
||||
# http://127.0.0.1/live/livestream.m3u8
|
||||
# rtmp://127.0.0.1/live/livestream
|
||||
# http://127.0.0.1/live/livestream.m3u8
|
||||
# where hls_path is /hls, srs will create the following files:
|
||||
# /hls/live the app dir for all streams.
|
||||
# /hls/live/livestream.m3u8 the HLS m3u8 file.
|
||||
# /hls/live/livestream-1.ts the HLS media/ts file.
|
||||
# /hls/live the app dir for all streams.
|
||||
# /hls/live/livestream.m3u8 the HLS m3u8 file.
|
||||
# /hls/live/livestream-1.ts the HLS media/ts file.
|
||||
# in a word, the hls_path is for vhost.
|
||||
# default: ./objs/nginx/html
|
||||
hls_path ./objs/nginx/html;
|
||||
# the hls storage: disk, ram or both.
|
||||
# disk, to write hls m3u8/ts to disk.
|
||||
# ram, serve m3u8/ts in memory, which use embeded http server to delivery.
|
||||
# both, disk and ram.
|
||||
# default: disk
|
||||
hls_storage disk;
|
||||
# the hls mount for hls_storage ram,
|
||||
# which use srs embeded http server to delivery HLS,
|
||||
# where the mount specifies the HTTP url to mount.
|
||||
# @see the mount of http_remux.
|
||||
# @remark the hls_mount must endswith .m3u8.
|
||||
# default: [vhost]/[app]/[stream].m3u8
|
||||
hls_mount [vhost]/[app]/[stream].m3u8;
|
||||
}
|
||||
}
|
||||
# the vhost with hls disabled.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue