Player.Stop 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.
Stops playing the media source.
public:
void Stop();
public void Stop ();
member this.Stop : unit -> unit
Public Sub Stop ()
Examples
The following example starts, pause, restarts (by calling Start) and stops the player.
C# Starting, pausing, restarting and stopping a Player.
player.SetSource(source);
player.AttachFlow(audioVideoFlow);
player.Start();
player.Pause();
player.Start();
player.Stop();
Remarks
Stop resets the current playing position to the beginning of the media source.