diff options
Diffstat (limited to 'localwebsite/handlers/MiscHandler.php')
-rw-r--r-- | localwebsite/handlers/MiscHandler.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/localwebsite/handlers/MiscHandler.php b/localwebsite/handlers/MiscHandler.php index 486ff45..772cd9b 100644 --- a/localwebsite/handlers/MiscHandler.php +++ b/localwebsite/handlers/MiscHandler.php @@ -55,8 +55,15 @@ class MiscHandler extends RequestHandler list($hls_debug, $video_events) = $this->input('b:hls_debug, b:video_events'); $hls_opts = [ - 'startPosition' => -1 + 'startPosition' => -1, + + // // https://github.com/video-dev/hls.js/issues/3884#issuecomment-842380784 + 'liveSyncDuration' => 2, + 'liveMaxLatencyDuration' => 3, + 'maxLiveSyncPlaybackRate' => 2, + 'liveDurationInfinity' => true, ]; + if ($hls_debug) $hls_opts['debug'] = true; |