ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Video functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Connects the "Camera" control to a specific driver for video capture.
Caution:
  • To use this function, a "camera" must be connected to the current computer.
  • To find out the list of drivers for video capture installed on the current computer, use VideoListDriver (associated with the viDirectShow constant). To determine which driver is currently associated with a Camera control, use the Driver property.
Remark: This function is equivalent to CameraChangeDriver.
// Displays the list of available video drivers
// in the LIST_VideoDrivers control
ListAdd(LIST_VideoDriver, VideoListDriver(viDirectShow))
// Uses the second video driver
IF VideoSetDriver(CAM_Camera1, LIST_VideoDrivers[2]) = False THEN
Error("Unable to change driver: " + CR + ...
ErrorInfo())
END
Syntax
<Result> = VideoSetDriver(<Camera control> , <Identifier of video driver>)
<Result>: Boolean
  • True if the video driver associated with the control was modified,
  • False if a problem occurs. To get more details on the error, use ErrorInfo.
<Camera control>: Control name
Name of the Camera control to be used.
<Identifier of video driver>: Character string
Identifier of video driver to use. This identifier has the following format:
<Driver name> + TAB + <Driver version>
This identifier corresponds to the list format returned by VideoListDriver (associated with the viDirectShow constant).
Component: wd290obj.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help