From 28f2c8a20d5dd478361a8012ea691935891c6bac Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Thu, 3 Mar 2022 21:03:49 -0800 Subject: [PATCH] Don't allow the JSMPEG player to internally reconnect --- src/components/live.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/live.ts b/src/components/live.ts index 6cd8bb39..f0ba616f 100644 --- a/src/components/live.ts +++ b/src/components/live.ts @@ -1035,8 +1035,14 @@ export class FrigateCardLiveJSMPEG extends LitElement { protocols: [], audio: false, videoBufferSize: 1024 * 1024 * 4, + // Override with user-specified options. ...this.jsmpegConfig?.options, + + // Don't allow the player to internally reconnect, as it may re-use a + // URL with a (newly) invalid signature, e.g. during a Home Assistant + // restart. + reconnectInterval: 0, onVideoDecode: () => { // This is the only callback that is called after the dimensions // are available. It's called on every frame decode, so just