Share via


Recorder.RemoveSink Method

Removes the media sink from this recorder.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public Sub RemoveSink
'Usage
Dim instance As Recorder

instance.RemoveSink()
public void RemoveSink()

Remarks

If the recorder is not Stopped, RemoveSink stops it.

Examples

The following example shows Recorder removing a MediaSink and then setting and starting to record.

C# Removing and setting MediaSink.

 

            // In case no sink is set, RemoveSink will be no-op.
            recorder.RemoveSink();



            recorder.AttachFlow(audioVideoFlow);
            recorder.SetSink(sink);
            recorder.Start();


See Also

Reference

Recorder Class

Recorder Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace