Edit

Share via


AudioControl.Mute(MuteDirection) Method

Definition

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);



Applies to