Fixes for native WebRTC support.

This commit is contained in:
Dermot Duffy
2022-02-07 20:58:01 -08:00
parent 5ac0c3936a
commit 65b0ed987e
3 changed files with 11 additions and 1 deletions
+3
View File
@@ -99,6 +99,7 @@ customElements.whenDefined('ha-camera-stream').then(() => {
return this._url
? html` <frigate-card-ha-hls-player
${ref(this._playerRef)}
?autoplay=${false}
playsinline
.allowExoPlayer=${this.allowExoPlayer}
.muted=${this.muted}
@@ -110,6 +111,8 @@ customElements.whenDefined('ha-camera-stream').then(() => {
}
if (this.stateObj.attributes.frontend_stream_type === STREAM_TYPE_WEB_RTC) {
return html`<frigate-card-ha-web-rtc-player
${ref(this._playerRef)}
?autoplay=${false}
playsinline
.muted=${this.muted}
.controls=${this.controls}