Skip to content

Synchronization of several TVideoGrabber components

Synchronization activation

Several TVideoGrabber components can be synchronized within the same application, whether they are placed on the same form or on different forms.

To activate this feature, enable the Synchronized property on each TVideoGrabber component that must be synchronized with the others.

Preview/recording synchronization

With the preview and recording synchronization, TVideoGrabber prepares the preview or recording on all the specified components, then all the components are started by invoking StartSynchronized () on just one of them.

E.g. to start the preview concurrently on 3 TVideoGrabber components:

VideoGrabber1.VideoDevice = VideoGrabber1.VideoDeviceIndex ("... name of the 1st video capture device...")
VideoGrabber2.VideoDevice = VideoGrabber2.VideoDeviceIndex ("... name of the 2nd video capture device...")
VideoGrabber3.VideoDevice = VideoGrabber3.VideoDeviceIndex ("... name of the 3rd video capture device...")
VideoGrabber1.Synchronized = true
VideoGrabber2.Synchronized = true
VideoGrabber3.Synchronized = true
VideoGrabber1.StartPreview()
VideoGrabber2.StartPreview()
VideoGrabber3.StartPreview()
VideoGrabber1.StartSynchronized()

When StartSynchronized is invoked on one of the 3 TVideoGrabber components (VideoGrabber1 in this example), the preview starts simultaneously on the 3 components.

For the recording, replace StartPreview() with StartRecording().

Player synchronization

See the Synchronization of several player components chapter.