Mute stream outside of more info (#6959)

This commit is contained in:
Bram Kragten
2020-09-12 20:07:22 +02:00
committed by GitHub
parent 99d0a0a6fd
commit 5480e54185
4 changed files with 17 additions and 11 deletions

View File

@@ -26,7 +26,11 @@ class HaCameraStream extends LitElement {
@property({ attribute: false }) public stateObj?: CameraEntity;
@property({ type: Boolean }) public showControls = false;
@property({ type: Boolean, attribute: "controls" })
public controls = false;
@property({ type: Boolean, attribute: "muted" })
public muted = false;
// We keep track if we should force MJPEG with a string
// that way it automatically resets if we change entity.
@@ -56,9 +60,9 @@ class HaCameraStream extends LitElement {
? html`
<ha-hls-player
autoplay
muted
playsinline
?controls=${this.showControls}
.muted=${this.muted}
.controls=${this.controls}
.hass=${this.hass}
.url=${this._url}
></ha-hls-player>