Edit

Share via


Player.RemoveSource Method

Definition

Removes the currently attached media source from this player.

public:
 void RemoveSource();
public void RemoveSource ();
member this.RemoveSource : unit -> unit
Public Sub RemoveSource ()

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



Remarks

If the player is not stopped, RemoveSource stops it.

Applies to