ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Video functions
  • Required permissions
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
VideoListParameter (Function)
In french: VidéoListeParamètre
Lists the values supported by the device camera for a given parameter.
Warning
AndroidiPhone/iPad Starting with version 27, this function is ignored for Android and iOS applications. This function is kept only for Camera controls from earlier versions and with the "Version-26-compatible mode" option enabled ("General" tab of the control description window).
Remarks:
  • To modify or find out the current value of a parameter for the device camera, use VideoParameter.
  • VideoListParameter can be used in the Android emulator but not in the simulator.
Example
// Use the maximum resolution to take a photo
sListResolution is string
sListResolution = VideoListParameter(vipPhotoResolution)
IF ErrorOccurred = False THEN
VideoParameter(vipPhotoResolution, ExtractString(sListResolution, lastRank, CR))
ELSE
Error("Error while retrieving the resolutions supported by the camera.")
END
Syntax
<Result> = VideoListParameter(<Parameter>)
<Result>: Character string
  • List of values supported by the camera for the specified <Parameter>. This list has the following format:
    <Value 1>+ CR + <Value 2> + CR + ... + <Value N>
  • Empty string ("") if the parameter is not supported by the camera or if an error occurred while retrieving the parameters.
    If an error occurs, the ErrorOccurred variable is set to True. To get more details on the error, use ErrorInfo.
<Parameter>: Character String constant or character string
Parameter for which the supported values must be retrieved. This parameter can correspond to:
  • one of the preset constants. These constants correspond to the most common parameters.
  • a String corresponding to the name of the desired parameter.
    Caution: the parameter name is case and accent-sensitive. See the documentation about the Android SDK or about the device to find out the name of additional supported parameters. If the specified name does not correspond to a parameter supported by the camera, the function will return an empty string.
The available constants are as follows:
vipBalanceBalance modes for the whites supported by the camera: automatic, daylight, cloudy, ...
iPhone/iPadMac Catalyst This constant is not available.
vipCameraSubscripts and types of the cameras available on the device. The list has the following format:
<Subscript><TAB><Type>
where:
  • <Subscript> is an integer included between 1 and the number of cameras found on the device,
  • <Type> is one of the following constants:
    • vipCameraBack: Back camera opposite to the screen.
    • vipCameraFront: Front camera facing the screen.
vipEffectColor effects: black and white, poster, sepia, ...
iPhone/iPadMac Catalyst This constant is not available.
vipFlashFlash modes supported by the camera: automatic, without, anti red eyes, ...
vipFlickerAdjustments of flicker (anti-banding) supported by the camera: automatic, none, 50Hz, 60Hz, ...
iPhone/iPadMac Catalyst This constant is not available.
vipFocusFocus modes supported by the camera: automatic, macro, fixed, ...
iPhone/iPadMac Catalyst This constant is not available.
vipISOISO sensitivities supported by the camera: automatic, 100, 200, 400, ...
iPhone/iPadMac Catalyst This constant is not available.
vipPhotoResolutionResolutions supported by the camera for taking photos.
The list is sorted in ascending order, from the lowest resolution to the highest one.
The returned values have the following format:
<Width><TAB><Height>
Example:
640<TAB>480<CR>1024<TAB>760<CR>2048<TAB>1240
iPhone/iPadMac Catalyst This constant is not available.
vipSceneTypes of scenes supported by the camera: automatic, night, sports, ...
iPhone/iPadMac Catalyst This constant is not available.
vipZoomZoom values supported by the camera.
The returned values have the following format:
  • 100 (1x zoom = no zoom)
  • 200 (2x zoom)
  • 300 (3x zoom)
  • 350 (3,5x zoom)
  • ...
The first value is always 100 and the last one corresponds to the maximum zoom.
Example:
100<CR>200<CR>300<CR>350
Remark: The function will return an empty string ("") if the device camera does not support the zoom.
iPhone/iPadMac Catalyst This constant is not available.
iPhone/iPadMac Catalyst Only the vipCamera and vipFlash constants are available.
Remarks
Android

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: CAMERA.
This permission allows the applications to access the camera.
Component: wd290android.aar
Minimum version required
  • Version 17
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help