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]
objActiveDcam.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 ActiveDcam objects.

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