ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Video functions
  • Use conditions:
  • Special cases
  • Required permissions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
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
// Connaître l'état du champ Caméra "CAM_Cuisine"
// L'explication est affichée dans la barre de message. 
ResEtat = CAM_Cuisine.Etat()
SWITCH ResEtat
	CASE viStatusDisplayCapture:
		Message("Affichage de la vidéo dans le champ Caméra. " + ...
			"Enregistrement en cours de cette vidéo")
	CASE viStatusDisplayNoCapture:
		Message("Affichage de la vidéo dans le champ Caméra. " + ...
			"Aucune enregistrement n'est actuellement réalisé")
	CASE viStatusCaptureNoDisplay:
		Message("Enregistrement en cours d'une vidéo. "+ ...
			"Cette vidéo n'est pas affichée dans le champ Caméra")
	CASE viStatusNoCaptureNoDisplay:
		Message("Aucune vidéo n'est affichée et/ou en cours " + ...
			"d'enregistrement dans le champ Caméra")
END
Syntax
<Result> = <Camera control>.Report()
<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:

  • WINDEVWindows 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 CameraStatus.

Special cases

Android

Required permissions

This function changes the permissions required by the application.
Permission required: CAMERA.
This permission allows the applications to access the camera.
Component: wd300obj.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help