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:
@@ -1035,8 +1035,14 @@ export class FrigateCardLiveJSMPEG extends LitElement {
|
|||||||
protocols: [],
|
protocols: [],
|
||||||
audio: false,
|
audio: false,
|
||||||
videoBufferSize: 1024 * 1024 * 4,
|
videoBufferSize: 1024 * 1024 * 4,
|
||||||
|
|
||||||
// Override with user-specified options.
|
// Override with user-specified options.
|
||||||
...this.jsmpegConfig?.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: () => {
|
onVideoDecode: () => {
|
||||||
// This is the only callback that is called after the dimensions
|
// This is the only callback that is called after the dimensions
|
||||||
// are available. It's called on every frame decode, so just
|
// are available. It's called on every frame decode, so just
|
||||||
|
|||||||
Reference in New Issue
Block a user