CloseVideo (DVR version only)
Top  Previous  Next

Description

Closes the video file currently opened by OpenVideo.


Syntax


[VB]
objActiveDcam.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()
ActiveDcam1.OpenVideo "C:\\video1.avi"
ActiveDcam1.PlayVideo
End Sub


Private Sub ActiveDcam1_PlayCompleted (ByVal Frames As Long)
ActiveDcam1.CloseVideo

End Sub



Remarks

If the video file is currently being played, this method will stop the playback and close the file.