ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Camera functions
  • Use conditions:
  • Special cases
  • 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
Returns the status of a Camera control.
AndroidiPhone/iPad
Warning
Starting with version 27, this function is deprecated for Android and iOS applications. This function is kept only for Camera controls created with earlier versions and with the "Version-26-compatible mode" option enabled ("General" tab of the control description window).
Example
// Get the status of the "CAM_Kitchen" control
// The details are displayed in the status bar.
ResStatus = CameraStatus(CAM_Kitchen)
SWITCH ResStatus
CASE viStatusDisplayCapture:
Message("The preview stream is displayed in the Camera control. " + ...
"Video recording in progress")
CASE viStatusDisplayNoCapture:
Message("The preview stream is displayed in the Camera control. " + ...
"No recording in progress")
CASE viStatusCaptureNoDisplay:
Message("Video recording in progress. "+ ...
"This preview stream is not displayed in the Camera control")
CASE viStatusNoCaptureNoDisplay:
Message("No preview stream being displayed and/or " + ...
"recorded in the Camera control")
END
Syntax
<Result> = CameraStatus(<Camera control>)
<Result>: Integer constant
Status of the specified Camera control:
viStatusCaptureNoDisplayA video is being recorded. The preview stream is not displayed in the specified Camera control.
viStatusDisplayCaptureThe preview stream is displayed in the specified Camera control. Video recording in progress.
viStatusDisplayNoCaptureThe preview stream is displayed in the specified Camera control. No video recording in progress.
viStatusNoCaptureNoDisplayNo preview stream is being displayed and/or recorded in the specified Camera control.
<Camera control>: Control name
Name of the Camera control to be used.
Remarks

Use conditions:

  • Windows To use this function, a "web camera" must be connected to the current computer.
  • Android This function requires a device equipped with a camera. It can also be used in the Android emulator.
  • iPhone/iPad This function requires a device equipped with a camera.
  • This function is equivalent to VideoStatus.

Special cases

  • To capture the video received from a web camera, use CameraCapture.
  • To display the video captured by a web camera in a Camera control, use CameraDisplay.
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: wd300obj.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/29/2022

Send a report | Local help