1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

for #304, use stringstream to generate m3u8, add hls_td_ratio. 2.0.116.

This commit is contained in:
winlin 2015-02-12 13:34:59 +08:00
parent 103ce78b35
commit 25af6c6847
7 changed files with 60 additions and 52 deletions

View file

@ -451,6 +451,12 @@ vhost with-hls.srs.com {
# the hls fragment in seconds, the duration of a piece of ts.
# default: 10
hls_fragment 10;
# the hls m3u8 target duration ratio,
# EXT-X-TARGETDURATION = hls_td_ratio * hls_fragment // init
# EXT-X-TARGETDURATION = max(ts_duration, EXT-X-TARGETDURATION) // for each ts
# @see https://github.com/winlinvip/simple-rtmp-server/issues/304#issuecomment-74000081
# default: 1.5
hls_td_ratio 1.5;
# the hls window in seconds, the number of ts in m3u8.
# default: 60
hls_window 60;