Edit

Share via


Player.Pause Method

Definition

Pauses playing the media source.

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

Exceptions

Thrown when the player's State is not Started.

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

Pause maintains the current playing position. Pause can be called only on player whose state is Started. To resume recording call Player.Start.

Applies to