public void MuteAudioIn() { System.Diagnostics.Debug.WriteLine("audio muted"); RTCMediaStream localStream = _peerConnection.LocalStreams[0]; defaultAudioTrack = localStream.AudioTracks[0]; localStream.RemoveAudioTrack(defaultAudioTrack); _peerConnection.RemoveStream(localStream); _peerConnection.AddStream(localStream); }
public void RemoveTrack(IAudioTrack audioTrack) { _mediaStream.RemoveAudioTrack(audioTrack.ToNative <RTCAudioTrack>()); }