TriggerVideo
Top  Previous  Next

Description

Advances the playback of the video file or memory sequence to the next frame. Used in combination with SetVideoSync and PlayVideo.

Syntax


[VB]
objActiveUSB.TriggerVideo


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


Parameters
[C/C++]

None  
        

Return Values


S_OK  
Success  
E_FAIL  
Failure  
 

Example


This VB example shows how to synchronously play two AVI files using two ActiveUSB objects.

Private Sub Form_Load()  
ActiveUSB1.OpenVideo "C:\\video1.avi"  
ActiveUSB2.OpenVideo "C:\\video2.avi"  
ActiveUSB1.SetVideoSync 1  
ActiveUSB2.SetVideoSync 1  
ActiveUSB1.PlayVideo  
ActiveUSB2.PlayVideo  
fps=ActiveUSB1.GetVideoFPS  
Timer1.Interval=1000/fps  
End Sub  
 
Private Sub Timer1_Timer()  
ActiveUSB1.TriggerVideo  
ActiveUSB2.TriggerVideo  
End Sub  
 

Remarks


This method can only be used when the video synchronization has been set to the external mode(see SetVideoSync) and PlayVideo has been called.