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:
parent
103ce78b35
commit
25af6c6847
7 changed files with 60 additions and 52 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue