diff --git a/src/webrtc/call.ts b/src/webrtc/call.ts index fbf882126..7b010f27a 100644 --- a/src/webrtc/call.ts +++ b/src/webrtc/call.ts @@ -704,6 +704,16 @@ export class MatrixCall extends EventEmitter { const vidShouldBeMuted = this.vidMuted || this.remoteOnHold; setTracksEnabled(this.localAVStream.getVideoTracks(), !vidShouldBeMuted); + + if (this.remoteOnHold) { + if (this.remoteAudioElement && this.remoteAudioElement.srcObject === this.remoteStream) { + this.remoteAudioElement.muted = true; + } else if (this.remoteVideoElement && this.remoteVideoElement.srcObject === this.remoteStream) { + this.remoteVideoElement.muted = true; + } + } else { + this.playRemoteAudio(); + } } /**