Synchronization of several TVideoGrabber components
Synchronization of several TVideoGrabber components.
It is possible to synchronize several TVideoGrabber components placed on the same form, or on different forms, within the same application.
This feature is activated by enabling the Synchronized property on each TVideoGrabber component that must be synchronized with the others.
The preview and recording synchronization lets TVideoGrabber prepare the preview or recording on all the specified components, then the 3 components are started by just invoking StartSynchronized() on one of them.
E.g. to start the preview concurrently on 3 TVideoGrabber components:
VideoGrabber1.VideoDevice = VideoGrabber.VideoDeviceIndex ("... name of your 1st video capture device ...")
VideoGrabber2.VideoDevice = VideoGrabber.VideoDeviceIndex ("... name of your 2nd video capture device ...")
VideoGrabber3.VideoDevice = VideoGrabber.VideoDeviceIndex ("... name of your 3rd video capture device ...")
VideoGrabber1.Synchronized = true
VideoGrabber2.Synchronized = true
VideoGrabber3.Synchronized = true
When invoking StartSynchronized on one of the 3 TVideoGrabber components (in this example VideoGrabber1) the preview will start simultaneously on the 3 components.
For the recording, replace StartPreview() by StartRecording()
See Synchronization of several player components chapter