Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes the currently attached media source from this player.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub RemoveSource
'Usage
Dim instance As Player
instance.RemoveSource()
public void RemoveSource()
Remarks
If the player is not stopped, RemoveSource stops it.
Examples
The following example shows a MediaSource being set and removed from a Player
C# Setting and removing a MediaSource.
// In case no source is set, RemoveSource will be no-op.
player.RemoveSource();
player.SetSource(source);
player.AttachFlow(audioVideoFlow);
player.Start();