Synchronization of several TVideoGrabber components

Prev

Next

 






































































































Synchronization of several TVideoGrabber components.

Description

SYNCHRONIZATION ACTIVATION

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.

PREVIEW/RECORDING SYNCHRONIZATION

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

VideoGrabber1.StartPreview()
VideoGrabber2.StartPreview()
VideoGrabber3.StartPreview()

VideoGrabber1.StartSynchronized()

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()


PLAYER SYNCHRONIZATION

See Synchronization of several player components chapter