Share via


Player.RemoveSource Method

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


See Also

Reference

Player Class

Player Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace