ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Controls, pages and windows / Camera functions
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
WLanguage procedure called by CameraVideoStart
WLanguage procedure ("callback") called when the video recording is completed. The video recording was started with CameraVideoStart. CameraVideoStop must have been called to stop the video recording.
Example
// BTN_Start_video click code
ChronoStart()
TimerSys(TimerSys_Callback, 1s)
INTERNAL PROCEDURE TimerSys_Callback()
dDuration is Duration = ChronoValue()
STC_CPT_VIDEO = DurationToString(dDuration,"HH:MM:SS")
END
CameraVideoStart(CAM_Camera, CameraVideoStart_Callback)
 
INTERNAL PROCEDURE CameraVideoStart_Callback(bSuccess is boolean, VideoPath is string)
ChronoEnd()
EndTimerSys()
STC_CPT_VIDEO = "00:00:00"
IF bSuccess THEN
STC_VIDEO_PATH = VideoPath
MyWindow.Plane = 4
ELSE
ToastDisplay("Cannot record video." + CR + ErrorInfo())
END
END
// Stop video
CameraVideoStop(CAM_Camera)
Syntax
CameraVideoStart_Callback(<Success> , <Video path>)
<Success>: Boolean
  • True if the video was recorded,
  • False otherwise. In this case, ErrorInfo returns the details of the error.
<Video path>: Character string
Path of the video that has just been recorded.
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 06/19/2023

Send a report | Local help