Edit

Share via


Player.Skip(Int32) Method

Definition

Skips the specified number of milliseconds in the media source.

public:
 void Skip(int milliSeconds);
public void Skip (int milliSeconds);
member this.Skip : int -> unit
Public Sub Skip (milliSeconds As Integer)

Parameters

milliSeconds
Int32

The number of milliseconds to skip. The value can be positive (to move forward) or negative (to move backward).

Exceptions

Thrown when no source is attached or when the source is closed.

Examples

The following example skips Player's current position by one second after start the Player.

C# Skipping Player's current position.


player.SetSource(source);
player.AttachFlow(audioVideoFlow);
player.Start();



player.Skip(1000);



Remarks

Skip enables the current play position to be moved. This method can be called in any state. If user skips beyond the end of the file, Player will stop and a StateChanged event wil be raised. If user skips before the beginning of the file, Player will start playing from the beginning.

Applies to