Copyright © 2005-2018 MultiMedia Soft

VideoPlayer.PositionGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Obtains the loaded video position during a playback session.

 

For further details about the use of the embedded video player see the VideoPlayer class section.

For details about video clips rendering refer to the How to play video files through DirectShow tutorial.

 

 

Syntax

 

[Visual Basic]

Public Function PositionGet (

nPlayerIndex as Int16,

ByRef fPosition as Double,

bKeepCountOfRateChange as Boolean

) as enumErrorCodes


 

[C#]

public enumErrorCodes PositionGet (

Int16 nPlayerIndex,

ref double fPosition,

bool bKeepCountOfRateChange

);


 

[C++]

public: enumErrorCodes PositionGet (

Int16 nPlayerIndex,

double __gc *fPosition,

bool bKeepCountOfRateChange

);


 

Parameter

Description

 

 

nPlayerIndex

Number representing the zero-based index of the player whose information must be retrieved

fPosition

Reference that, on return from the method call, will contain the current position. Its effective value depends upon the actual value of the ScaleUnits property.

bKeepCountOfRateChange

Boolean flag that specifies if the returned position must keep count of eventual playback rate changes set through previous calls to the Effects.PlaybackTempSet or Effects.PlaybackRateSet methods.

Supported values are the following:

Mnemonic constant

Meaning

false

Don't keep count of playback rate changes

true

Keep count of playback rate changes

 

 

Return value

 

Value

Meaning

 

 

Negative value

An error occurred (see the LastError property for further error details)

enumErrorCodes.NOERROR (0)

The method call was successful.