Copyright © 2001-2019 MultiMedia Soft

VideoPlayer.PositionGet method

Previous pageReturn to chapter overviewNext page

Remarks

 

Gets the loaded video position during a playback session.

 

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

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

 

 

Syntax

 

[Visual Basic]

control.VideoPlayer.PositionGet (

nPlayer as Integer,

fPosition as Double,

bKeepCountOfRateChange as enumBoolean

) as Long


 

[C++]

long control.VideoPlayer.PositionGet (

short nPlayer,

double *fPosition,

short bKeepCountOfRateChange

);


 

Parameter

Description

 

 

nPlayer

Number representing the zero-based index of the player that will use the video player.

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.PlaybackTempoSet or Effects.PlaybackRateSet methods.

Supported values are the following:

Mnemonic constant

Value

Meaning

BOOL_FALSE

0

Don't keep count of playback rate changes

BOOL_TRUE

1

Keep count of playback rate changes

 

Return value

 

Value

Meaning

 

 

Value > 0

The video playback position expressed in milliseconds

Negative value

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