OpenVideo (DVR version only)
Top  Previous  Next

Description

Opens a specified video file (AVI or TIF) or previously recorded memory sequence for a playback. Used in combination with PlayVideo, StopVideo, CloseVideo.


Syntax


[VB]
objActiveGeni.OpenVideo Source [, Sound = False ]

[C/C++]
HRESULT OpenVideo (bstr Source, bool Sound );



Data Types [VB]

Source : String
Sound : Boolean (optional)


Parameters [C/C++]

File [in]  
The string containing the path to the AVI or TIF file; or "RAM" for a memory sequence.  
Sound [in]  
Optional boolean parameter for AVI files. If TRUE, the playback will be performed with the sound.  


Return Values


S_OK  
Success  
E_FAIL  
Failure.  
E_INVALIDARG  
Invalid file name.  


Example


This VB example opens and plays a memory sequence.

Private Sub
Play_Click()
ActiveGeni1.OpenVideo "ram"
ActiveGeni1.PlayVideo
End Sub



Remarks

For the Sound option to work, the AVI must contain the sound track.

If an AVI file is open with the Sound enabled, its maximum playback frame rate will be limited to x 16 of the recorded frame rate, and the synchronous playback will not be available.

Only one video file or memory sequence can be open at a time by one ActiveGeni object. To play back several video sources, use several ActiveGeni objects.