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

[Visual Basic]   [ Boolean = ]recordcontrolname.Open(FileName As String, Index As Long)
[Visual C++]     [ BOOL = ]recordcontrolname.Open(LPCTSTR FileName, long Index)
[VB.NET]   [ Boolean = ]recordcontrolname.Open(FileName As String, Index As Integer)
[C#.NET]   [ bool = ]recordcontrolname.Open(string FileName, int Index)

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 (nonzero) if successful, returns False (0) 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 (nonzero), then the State property is updated. If the return value is False (0), 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 ActiveX is a product created by Newtone Corporation