hls buffering tweaks (#5266)

This commit is contained in:
Samuel Newman
2024-09-11 16:20:20 +01:00
committed by GitHub
parent db38438549
commit b04ecbe54d
2 changed files with 11 additions and 1 deletions
@@ -130,8 +130,12 @@ export function Controls({
if (focused) {
// auto decide quality based on network conditions
hlsRef.current.autoLevelCapping = -1
// allow 30s of buffering
hlsRef.current.config.maxMaxBufferLength = 30
} else {
// back to what we initially set
hlsRef.current.autoLevelCapping = 0
hlsRef.current.config.maxMaxBufferLength = 10
}
}, [hlsRef, focused])