GetVideoPosition (DVR version only)
Top  Previous  Next

Description

Returns the zero-based position of the current frame in the open video file or sequence.


Syntax


[VB]
Value=objActiveDcam.GetVideoPosition


[C/C++]
HRESULT GetVideoPosition(long* pFrame );


Data Types
[VB]

Return value: Long


Parameters
[C/C++]

pFrame [out,retval]  
Pointer to the zero-based index of the current frame.  


Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

Example


This VB example uses the FrameLoaded event to display the number of a currently played frame.

Private Sub
 ActiveDcam1_FrameLoaded()
frameindex = ActiveDcam1.GetVideoPosition + 1
LabelCount.Caption = frameindex
 

Remarks


When the video file or sequnce has just been opened, the video position is reset to zero.