Connects to a capture device.
* More than one imVideoCapture object can be created
* but they must be connected to different devices. \n
* If the object is conected it will disconnect first. \n
* Use -1 to return the current connected device,
* in this case returns -1 if not connected. \n
* Returns zero if failed.
*
* \verbatim vc:Connect([device: number]) -> ret: number [in Lua 5] \endverbatim
* \ingroup capture
Connects to a capture device. * More than one imVideoCapture object can be created * but they must be connected to different devices. \n * If the object is conected it will disconnect first. \n * Use -1 to return the current connected device, * in this case returns -1 if not connected. \n * Returns zero if failed. * * \verbatim vc:Connect([device: number]) -> ret: number [in Lua 5] \endverbatim * \ingroup capture