Add editor support for go2rtc modes.

This commit is contained in:
Dermot Duffy
2023-02-18 11:36:35 -08:00
parent f5ce02fe4a
commit d446716b7b
5 changed files with 47 additions and 1 deletions
+3 -1
View File
@@ -115,7 +115,9 @@ export class FrigateCardGo2RTC extends LitElement {
this._player.src = address;
this._player.visibilityCheck = false;
this._player.background = true;
this._player.mode = 'webrtc';
if (this.cameraConfig?.go2rtc?.modes) {
this._player.mode = this.cameraConfig.go2rtc.modes.join(',');
}
this.requestUpdate();
}