Merge pull request #441 from dermotduffy/jsmpeg-auth-again

Don't allow the JSMPEG player to internally reconnect causing auth errors
This commit is contained in:
Dermot Duffy
2022-03-04 07:49:39 -08:00
committed by GitHub
+6
View File
@@ -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