Fix native controls for DVR: disable Infinity duration, larger back-buffer, overlay no longer blocks bottom
This commit is contained in:
parent
196ddd7497
commit
eaef77c4c0
@ -188,10 +188,13 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Overlay — live badge + controls */
|
/* Overlay layer for the GO LIVE pill — only top of player, doesn't cover native controls */
|
||||||
.player-overlay {
|
.player-overlay {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 80px;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
z-index: 3;
|
z-index: 3;
|
||||||
}
|
}
|
||||||
@ -663,10 +666,13 @@
|
|||||||
|
|
||||||
if (window.Hls && window.Hls.isSupported()) {
|
if (window.Hls && window.Hls.isSupported()) {
|
||||||
hls = new Hls({
|
hls = new Hls({
|
||||||
liveDurationInfinity: true,
|
// DVR-friendly: don't force duration=Infinity, allow native scrubber to work
|
||||||
|
liveDurationInfinity: false,
|
||||||
liveSyncDurationCount: 4,
|
liveSyncDurationCount: 4,
|
||||||
backBufferLength: 30,
|
// Larger back-buffer = more rewind window in browser memory
|
||||||
|
backBufferLength: 3600, // up to 60 min back-buffer
|
||||||
maxBufferLength: 60,
|
maxBufferLength: 60,
|
||||||
|
maxMaxBufferLength: 600,
|
||||||
manifestLoadingTimeOut: 10000,
|
manifestLoadingTimeOut: 10000,
|
||||||
manifestLoadingMaxRetry: 6,
|
manifestLoadingMaxRetry: 6,
|
||||||
fragLoadingTimeOut: 20000,
|
fragLoadingTimeOut: 20000,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user