Fix issues on DOM disconnect for certain live providers.

This commit is contained in:
Dermot Duffy
2023-03-08 19:35:01 -08:00
parent 1b93f15d2f
commit 5483a2be45
2 changed files with 23 additions and 3 deletions
+8
View File
@@ -73,6 +73,14 @@ export class FrigateCardLiveWebRTCCard
}
}
connectedCallback(): void {
super.connectedCallback();
// Reset the player when reconnected to the DOM.
// https://github.com/dermotduffy/frigate-hass-card/issues/996
this.requestUpdate();
}
/**
* Get the underlying video player.
* @returns The player or `null` if not found.