This method connects to the Web(USB) camera in capture mode.

[Delphi]   [ Boolean = ]recordcontrolname.Open(const FileName: string; Index: Integer)

Parameters

Name Explanation
FileName The name and path of the file where the video is saved.
Index The Web(USB) camera index.

Return Value

Returns True if successful, returns False when not successful.

Explanation

The Open method connects to the Web(USB) camera in capture mode.

Set the FileName parameter to specify the file where the captured video will be saved. The Format property determines whether the video will be saved in AVI or in WMV format. Set the Index parameter with the index of the video device you want to use as retrieved by the GetVideoDevices method. To use the first video device set this index to 0 (zero).

If the return value is True, then the State property is updated. If the return value is False, then values of 5, 11, 201, 202, or 203 will be set in the ErrorStatus property.

Important: You cannot use the preview (Preview Control) and the capture (Record Control) at the same time. To use the capture, be sure to first close the preview by executing the Preview Control's Close method to close the connection to the Web(USB) camera and then reopen the connection with the Record Control's Open method.

 

The ImageKit10 VCL is a product created by Newtone Corporation