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,