Edit

Share via


Player.Stop Method

Definition

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.

Applies to