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]
objActiveGige.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 ActiveGige objects.

Private Sub Form_Load()  
ActiveGige1.OpenVideo "C:\\video1.avi"  
ActiveGige2.OpenVideo "C:\\video2.avi"  
ActiveGige1.SetVideoSync 1  
ActiveGige2.SetVideoSync 1  
ActiveGige1.PlayVideo  
ActiveGige2.PlayVideo  
fps=ActiveGige1.GetVideoFPS  
Timer1.Interval=1000/fps  
End Sub  
 
Private Sub Timer1_Timer()  
ActiveGige1.TriggerVideo  
ActiveGige2.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.