StopVideo (DVR version only)
Top  Previous  Next

Description

Stops the playback of a video file or memory sequence that has been initiated by PlayVideo.


Syntax


[VB]
objActiveUSB.StopVideo

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



Parameters [C/C++]

None


Return Values


S_OK  
Success  
E_FAIL  
Failure.  


Example


This VB example shows how to stop and resume the video playback using push buttons.

Private Sub Form_Load()  
ActiveUSB1.OpenVideo "C:\\video1.avi"  
End Sub  

Private Sub Play_Click()  
ActiveUSB1.PlayVideo -1  
End Sub  
 
Private Sub StopButton_Click()  
ActiveUSB1.StopVideo  
End Sub  



Remarks

When this method is called, the PlayCompleted event will be fired.