CloseVideo (DVR version only)
Description
Closes the video file currently opened by
OpenVideo
.
Syntax
[VB]
objActiveGige.CloseVideo
[C/C++]
HRESULT CloseVideo( );
Parameters
[C/C++]
None
Return Values
S_OK
Success
E_FAIL
Failure.
Example
This VB example opens an AVI file, plays it and closes the file when the playback is finished using the
PlayCompleted
event.
Private Sub
Play_Click()
ActiveGige1.OpenVideo "C:\\video1.avi"
ActiveGige1.PlayVideo
End Sub
Private Sub
ActiveGige1_PlayCompleted
(
ByVal
Frames
As Long
)
ActiveGige1.CloseVideo
End Sub
Remarks
If the video file is currently being played, this method will stop the playback and close the file.