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
Stops the video recording previously started by CameraVideoStart.

Remark: This function can only be used with a Camera control in version 27 or higher (the "Version-26-compatible mode" option should not be checked in the "General" tab of the control description window).
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
CameraVideoStop(<Camera control>)
<Camera control>: Control name
Name of the Camera control that records the video.
Related Examples:
WM Photos 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: wd290android.aar
Minimum version required
  • Version 27
Comments
Click [Add] to post a comment

Last update: 06/27/2023

Send a report | Local help