StopVideoCapture (DVR version only)
Top  Previous  Next

Description

Stops video capture to an AVI file.


Syntax


[VB]
objActiveUSB.StopVideoCapture

[C/C++]
HRESULT StopVideoCapture();



Parameters

None  


Return Values


S_OK  
Success  
E_FAIL  
Failure  


Example


This VB example demonstrates how to capture the video to an AVI file with 0.5 sec time lapse between the frames.

Private Sub
LoadForm()

ActiveUSB1.CreateVideo "c:\\mycapture.avi"
ActiveUSB1.Acquire = True

End Sub


Private Sub StartButton_Click()
ActiveUSB1.StartVideoCapture 0, 0.5
End Sub


Private Sub
StopButton_Click()
ActiveUSB1.StopVideoCapture

End Sub



Remarks

Use this method to end the video capture initiated by StartVideoCapture. The CaptureCompleted event will be raised when this method is called.