This method connects to the Web(USB) camera in preview mode.
[Delphi] [ Boolean =
]previewcontrolname.Open(Index:
Integer)
Parameters
Name | Explanation |
---|---|
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 preview mode.
If the return value is True (nonzero), then the State property is updated. If the return value is False (0), then values of 11, 201, 202, or 203 will be set in the ErrorStatus property.
IMPORTANT: You cannot use capture (Record Control) and preview at the same time. When using the Preview control, execute the Record control's Close method. Then execute the Preview control's Open method and reconnect to the Web(USB) camera.