Player.Pause 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.
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.