Player.Skip Method
Skips the specified number of milliseconds in the media source.
Namespace: Microsoft.Rtc.Collaboration.AudioVideo
Assembly: Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)
Syntax
'Declaration
Public Sub Skip ( _
milliSeconds As Integer _
)
'Usage
Dim instance As Player
Dim milliSeconds As Integer
instance.Skip(milliSeconds)
public void Skip(
int milliSeconds
)
Parameters
- milliSeconds
Type: System.Int32
The number of milliseconds to skip. The value can be positive (to move forward) or negative (to move backward).
Exceptions
Exception | Condition |
---|---|
InvalidOperationException | Thrown when no source is attached or when the source is closed. |
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.
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);