Remarks
Gets the duration of the video currently loaded.
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.DurationGet (
nPlayer as Integer,
fDuration as Double,
bKeepCountOfRateChange as enumBoolean
) as enumErrorCodes
|
|
[C++]
short control.VideoPlayer.DurationGet (
short nPlayer,
double *fDuration,
short bKeepCountOfRateChange
);
|
|
Parameter
|
Description
|
|
|
nPlayer
|
Number representing the zero-based index of the player that will use the video player.
|
fDuration
|
Reference that, on return from the method call, will contain the duration of the loaded sound expressed in milliseconds.
|
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
|
|
|
Negative value
|
An error occurred, check the LastError property value in order to get the error code
|
enumErrorCodes.ERR_NOERROR (0)
|
The method call was successful
|
|