fix c/p error mixing up audio and video muting

This commit is contained in:
Bruno Windels 2022-04-26 15:48:03 +02:00
parent b46ec8bac4
commit 9ab75e8ed4

View file

@ -952,7 +952,7 @@ export class PeerCall implements IDisposable {
} }
const videoReceiver = this.findReceiverForStream(TrackKind.Video, stream.id); const videoReceiver = this.findReceiverForStream(TrackKind.Video, stream.id);
if (videoReceiver) { if (videoReceiver) {
videoReceiver.track.enabled = !metaData.audio_muted; videoReceiver.track.enabled = !metaData.video_muted;
} }
this._remoteMuteSettings = new MuteSettings( this._remoteMuteSettings = new MuteSettings(
metaData.audio_muted || !audioReceiver?.track, metaData.audio_muted || !audioReceiver?.track,