Player.RemoveSource Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for