mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-07-30 13:48:07 +02:00
Increase the initial stall timeout of the MSE player (#17359)
This commit is contained in:
parent
983dd87ffb
commit
9080305070
@ -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),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}, [
|
}, [
|
||||||
|
Loading…
Reference in New Issue
Block a user