From eaef77c4c0538db489fcb88b0ac75881b91ce521 Mon Sep 17 00:00:00 2001 From: Sebastjan Date: Sat, 25 Apr 2026 11:50:19 +0200 Subject: [PATCH] Fix native controls for DVR: disable Infinity duration, larger back-buffer, overlay no longer blocks bottom --- views/index.ejs | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/views/index.ejs b/views/index.ejs index 3dc57ab..53cd716 100644 --- a/views/index.ejs +++ b/views/index.ejs @@ -188,10 +188,13 @@ display: block; } - /* Overlay — live badge + controls */ + /* Overlay layer for the GO LIVE pill — only top of player, doesn't cover native controls */ .player-overlay { position: absolute; - inset: 0; + top: 0; + left: 0; + right: 0; + height: 80px; pointer-events: none; z-index: 3; } @@ -663,10 +666,13 @@ if (window.Hls && window.Hls.isSupported()) { hls = new Hls({ - liveDurationInfinity: true, + // DVR-friendly: don't force duration=Infinity, allow native scrubber to work + liveDurationInfinity: false, liveSyncDurationCount: 4, - backBufferLength: 30, + // Larger back-buffer = more rewind window in browser memory + backBufferLength: 3600, // up to 60 min back-buffer maxBufferLength: 60, + maxMaxBufferLength: 600, manifestLoadingTimeOut: 10000, manifestLoadingMaxRetry: 6, fragLoadingTimeOut: 20000,