|
|
|
|
|
CameraVideoStop (Function) In french: CaméraVidéoArrête Stops the video recording previously started by CameraVideoStart. 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).
ChronoStart()
TimerSys(TimerSys_Callback, 1 s)
INTERNAL PROCEDURE TimerSys_Callback()
dDurée is Duration = ChronoValue()
LIB_CPT_VIDEO = DurationToString(dDurée, "HH:MM:SS")
END
CameraVideoStart(CAM_Camera, 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
CameraVideoStop(CAM_Caméra)
Syntax
CameraVideoStop(<Camera control>)
<Camera control>: Control name Name of the Camera control that records the video.
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Photos
[ + ] This Android/iOS example is used to take photos and to save them by specifying a title and keywords. A search is also available. The photos are stored in the application directory, therefore they are private (not visible by other applications).
|
Component: wd300android.aar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|