Increase the initial stall timeout of the MSE player (#17359)

This commit is contained in:
Josh Hawkins 2025-03-25 08:16:56 -05:00 committed by GitHub
parent 983dd87ffb
commit 9080305070
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -461,6 +461,7 @@ function MSEPlayer({
setBufferTimeout(undefined); setBufferTimeout(undefined);
} }
const timeoutDuration = bufferTime == 0 ? 5000 : 3000;
setBufferTimeout( setBufferTimeout(
setTimeout(() => { setTimeout(() => {
if ( if (
@ -471,7 +472,7 @@ function MSEPlayer({
onDisconnect(); onDisconnect();
onError("stalled"); onError("stalled");
} }
}, 3000), }, timeoutDuration),
); );
} }
}, [ }, [