AudioControl.Mute Method
Mutes the audio.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub Mute ( _
direction As MuteDirection _
)
'Usage
Dim instance As AudioControl
Dim direction As MuteDirection
instance.Mute(direction)
public void Mute(
MuteDirection direction
)
Parameters
- direction
Type: Microsoft.Rtc.Collaboration.AudioVideo.MuteDirection
The direction to mute.
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when the AudioVideoFlow is not in the Active state or when there is no audio channel. |
ArgumentException | Thrown when the direction specified is invalid. |
ArgumentOutOfRangeException | 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);