|
|
|
|
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. // 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|