Only show webrtc if it has video (#22659)

This commit is contained in:
Bram Kragten
2024-11-04 17:34:08 +01:00
committed by GitHub
parent efe90fcc55
commit 2f974078e0

View File

@@ -102,7 +102,9 @@ export class HaCameraStream extends LitElement {
.entityid=${this.stateObj.entity_id}
.posterUrl=${this._posterUrl}
@streams=${this._handleHlsStreams}
class=${!this._streamType && this._webRtcStreams ? "hidden" : ""}
class=${!this._streamType && this._webRtcStreams?.hasVideo
? "hidden"
: ""}
></ha-hls-player>`
: nothing}
${this._streamType === STREAM_TYPE_WEB_RTC ||