AudioControl.Mute(MuteDirection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Mutes the audio.
public:
void Mute(Microsoft::Rtc::Collaboration::AudioVideo::MuteDirection direction);
public void Mute (Microsoft.Rtc.Collaboration.AudioVideo.MuteDirection direction);
member this.Mute : Microsoft.Rtc.Collaboration.AudioVideo.MuteDirection -> unit
Public Sub Mute (direction As MuteDirection)
Parameters
- direction
- MuteDirection
The direction to mute.
Exceptions
Thrown when the AudioVideoFlow is not in the Active state or when there is no audio channel.
Thrown when the direction specified is invalid.
Thrown when the direction specified is not a value in the MuteDirection enumerated type.
Examples
The following example mutes the call so AudioVideoFlow won't be able to send audio.
C# Muting a call.
audioVideoFlow.Audio.Mute(MuteDirection.Send);