ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Camera functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
<Camera>.VideoStop (Function)
In french: <Caméra>.VidéoArrête
Stops the video recording previously started by <Camera>.VideoStart.

Note: This function can only be used with a Camera field in version 27 or higher (the field must not have the "Mode compatible 26" option ticked in the "General" tab of the field description window).
Example
// Code de clic sur le champ BTN_Démarre_video
ChronoStart()
TimerSys(TimerSys_Callback,1 s)
INTERNAL PROCEDURE TimerSys_Callback()
	dDurée is Duration = ChronoValue()
	LIB_CPT_VIDEO = dDurée.ToString("HH:MM:SS")
END
CAM_Camera.VidéoDémarre(CaméraVidéoDémarre_Callback)

INTERNAL PROCEDURE CaméraVidéoDémarre_Callback(bRéussite is boolean, CheminVidéo is string)
	ChronoEnd()
	EndTimerSys()
	LIB_CPT_VIDEO = "00:00:00"
	IF bRéussite THEN
		LIB_CHEMIN_VIDEO = CheminVidéo
		MyWindow.Plan = 4
	ELSE
		ToastDisplay("Erreur lors de l'enregistrement de la vidéo." + CR + ErrorInfo())
	END
END
// Arrêt de la vidéo 
CAM_Caméra.VidéoArrête()
Syntax
<Camera control>.VideoStop()
<Camera control>: Control name
Name of the Camera control that records the video.
Component: wd300android.aar
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help