Update the webrtc_card provider for the latest webrtc version.

This commit is contained in:
Dermot Duffy
2023-02-27 23:14:20 -08:00
parent d59b259a74
commit a5c33f4c28
2 changed files with 8 additions and 3 deletions
+3 -1
View File
@@ -863,12 +863,14 @@ export class FrigateCardLiveProvider
${ref(this._providerRef)}
.hass=${this.hass}
.cameraConfig=${this.cameraConfig}
@frigate-card:media:loaded=${() => {
@frigate-card:media:loaded=${(ev: Event) => {
if (provider === 'image') {
// Only count the media has loaded if the required provider is
// the image (not just the temporary image shown during
// loading).
this._videoMediaShowHandler();
} else {
ev.stopPropagation();
}
}}
>