mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
HLS: Enable hls_ctx by default.
This commit is contained in:
parent
ca7b5a1c4e
commit
d39995cc31
4 changed files with 23 additions and 17 deletions
|
@ -1371,6 +1371,19 @@ vhost hls.srs.com {
|
|||
# if off, do not write hls(ts and m3u8) when publish.
|
||||
# default: off
|
||||
enabled on;
|
||||
|
||||
# Whether enable hls_ctx for HLS streaming, for which we create a "fake" connection for HTTP API and callback.
|
||||
# For each HLS streaming session, we use a child m3u8 with a session identified by query "hls_ctx", it simply
|
||||
# work as the session id.
|
||||
# Once the HLS streaming session is created, we will cleanup it when timeout in 2*hls_window seconds. So it
|
||||
# takes a long time period to identify the timeout.
|
||||
# Now we got a HLS stremaing session, just like RTMP/WebRTC/HTTP-FLV streaming, we're able to stat the session
|
||||
# as a "fake" connection, do HTTP callback when start playing the HLS streaming. You're able to do querying and
|
||||
# authentication.
|
||||
# Note that it will make NGINX edge cache always missed, so never enable HLS streaming if use NGINX edges.
|
||||
# Default: on
|
||||
hls_ctx on;
|
||||
|
||||
# the hls fragment in seconds, the duration of a piece of ts.
|
||||
# default: 10
|
||||
hls_fragment 10;
|
||||
|
@ -1499,14 +1512,6 @@ vhost hls.srs.com {
|
|||
# the key root URL, use this can support https.
|
||||
# @remark It's optional.
|
||||
hls_key_url https://localhost:8080;
|
||||
# Whether enable hls_ctx.
|
||||
# hls_ctx used to keep track of subsequent m3u8 requests.
|
||||
# if on, hls client info can be collected in stat module,
|
||||
# if on, on_play/on_stop can be called in http hook module.
|
||||
# otherwise not;
|
||||
# When request stopped, http hook or stat with special time effected, that is 2*hls_window,
|
||||
# Default: off
|
||||
hls_ctx on;
|
||||
|
||||
# Special control controls.
|
||||
###########################################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue