|
SetVideoSync (DVR version only)
|
|
| Mode [in]
|
| The synchronization mode of the currently open video source. Select one of the following values:
|
| 0 - internal (freerun) synchronization. Video will be played by ActiveDcam at the currently set frame rate.
|
| 1 - external (triggered) synchronization. Video will advanced to the next frame when TriggerVideo is called.
|
|
|
| S_OK
|
| Success
|
| E_FAIL
|
| Failure.
|
| 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
|
|
|