mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-10 03:19:44 +00:00
Don't add audio track if webrtc player is muted (#25767)
This commit is contained in:
@@ -321,6 +321,10 @@ class HaWebRtcPlayer extends LitElement {
|
||||
if (!this._remoteStream) {
|
||||
return;
|
||||
}
|
||||
// If the track is audio and the player is muted, we do not add it to the stream.
|
||||
if (event.track.kind === "audio" && this.muted) {
|
||||
return;
|
||||
}
|
||||
this._remoteStream.addTrack(event.track);
|
||||
if (!this.hasUpdated) {
|
||||
await this.updateComplete;
|
||||
|
||||
Reference in New Issue
Block a user