mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-01-22 20:18:30 +03:00
use fallback timeout for opening media source
covers the case where there is no active connection to the go2rtc stream and the camera takes a long time to start
This commit is contained in:
parent
54f4af3c6a
commit
fb0838558f
@ -260,7 +260,7 @@ function MSEPlayer({
|
|||||||
// @ts-expect-error for typing
|
// @ts-expect-error for typing
|
||||||
value: codecs(MediaSource.isTypeSupported),
|
value: codecs(MediaSource.isTypeSupported),
|
||||||
},
|
},
|
||||||
3000,
|
(fallbackTimeout ?? 3) * 1000,
|
||||||
).catch(() => {
|
).catch(() => {
|
||||||
if (wsRef.current) {
|
if (wsRef.current) {
|
||||||
onDisconnect();
|
onDisconnect();
|
||||||
@ -290,7 +290,7 @@ function MSEPlayer({
|
|||||||
type: "mse",
|
type: "mse",
|
||||||
value: codecs(MediaSource.isTypeSupported),
|
value: codecs(MediaSource.isTypeSupported),
|
||||||
},
|
},
|
||||||
3000,
|
(fallbackTimeout ?? 3) * 1000,
|
||||||
).catch(() => {
|
).catch(() => {
|
||||||
if (wsRef.current) {
|
if (wsRef.current) {
|
||||||
onDisconnect();
|
onDisconnect();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user