|
- Photos and videos saved
- Backup directories
- Required application feature
VideoStartApp (Function) In french: VidéoLanceAppli
sPhoto is string sPhoto = VideoStartApp(viPictureCapture) IF sPhoto <> "" THEN Info("Photo saved in the file " + sPhoto) END
Versions 21 and later
nRecordingType is int // Let the user choose the type of capture IF Dialog("Do you want to save an image or a video?", ... ["An image", "A video"], 1, 2, dlgIconQuestion) = 1 THEN nRecordingType = viPictureCapture ELSE nRecordingType = viVideoCapture END // Starts the application VideoStartApp(nRecordingType, CB_VideoStartApp) INTERNAL PROCEDURE CB_VideoStartApp(sPath is string) // If the return is an empty string vide (""), an error occurred IF sPath ~= "" THEN Error(ErrorInfo()) RETURN END // Message for end of recording Info("The file was saved here: " + sPath)
New in version 21
nRecordingType is int // Let the user choose the type of capture IF Dialog("Do you want to save an image or a video?", ... ["An image", "A video"], 1, 2, dlgIconQuestion) = 1 THEN nRecordingType = viPictureCapture ELSE nRecordingType = viVideoCapture END // Starts the application VideoStartApp(nRecordingType, CB_VideoStartApp) INTERNAL PROCEDURE CB_VideoStartApp(sPath is string) // If the return is an empty string vide (""), an error occurred IF sPath ~= "" THEN Error(ErrorInfo()) RETURN END // Message for end of recording Info("The file was saved here: " + sPath)
nRecordingType is int // Let the user choose the type of capture IF Dialog("Do you want to save an image or a video?", ... ["An image", "A video"], 1, 2, dlgIconQuestion) = 1 THEN nRecordingType = viPictureCapture ELSE nRecordingType = viVideoCapture END // Starts the application VideoStartApp(nRecordingType, CB_VideoStartApp) INTERNAL PROCEDURE CB_VideoStartApp(sPath is string) // If the return is an empty string vide (""), an error occurred IF sPath ~= "" THEN Error(ErrorInfo()) RETURN END // Message for end of recording Info("The file was saved here: " + sPath)
Syntax
Starting the native camera application (locking call) Hide the details
<Result> = VideoStartApp([<Type of capture>])
<Result>: Character string - Full path of file where the photo or the video was saved,
- Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
<Type of capture>: Optional integer constant Type of capture: | | viPictureCapture | Save a photo. | viVideoCapture (Default value) | Capture a video sequence. |
Versions 21 and later
Starting the native camera application (non-locking call) Hide the details
<Result> = VideoStartApp([<Type of capture> [, <WLanguage procedure>]])
<Result>: Boolean - True if the photo or video was saved.
- False otherwise. To get the details of the error, use ErrorInfo.
<Type of capture>: Optional integer constant Type of capture: | | viPictureCapture | Save a photo. | viVideoCapture (Default value) | Capture a video sequence. |
<WLanguage procedure>: Procedure name Name of WLanguage procedure ("callback" procedure) that will be called when saving the photo or the video. This procedure has the following format:
PROCEDURE <Procedure name> (<Path>)
where <Path> corresponds to the backup path of image or video. New in version 21
Starting the native camera application (non-locking call) Hide the details
<Result> = VideoStartApp([<Type of capture> [, <WLanguage procedure>]])
<Result>: Boolean - True if the photo or video was saved.
- False otherwise. To get the details of the error, use ErrorInfo.
<Type of capture>: Optional integer constant Type of capture: | | viPictureCapture | Save a photo. | viVideoCapture (Default value) | Capture a video sequence. |
<WLanguage procedure>: Procedure name Name of WLanguage procedure ("callback" procedure) that will be called when saving the photo or the video. This procedure has the following format:
PROCEDURE <Procedure name> (<Path>)
where <Path> corresponds to the backup path of image or video.
Starting the native camera application (non-locking call) Hide the details
<Result> = VideoStartApp([<Type of capture> [, <WLanguage procedure>]])
<Result>: Boolean - True if the photo or video was saved.
- False otherwise. To get the details of the error, use ErrorInfo.
<Type of capture>: Optional integer constant Type of capture: | | viPictureCapture | Save a photo. | viVideoCapture (Default value) | Capture a video sequence. |
<WLanguage procedure>: Procedure name Name of WLanguage procedure ("callback" procedure) that will be called when saving the photo or the video. This procedure has the following format:
PROCEDURE <Procedure name> (<Path>)
where <Path> corresponds to the backup path of image or video. Remarks Photos and videos saved The photo and video settings (format, resolution, size) are the ones defined in the native camera application. Versions 21 and later New in version 21
Related Examples:
|
Cross-platform examples (WINDEV Mobile): WM Expense Account
[ + ] This example allows you to manage your fees. Let's see the main features of this application: - The input of invoices - Management of foreign currencies - Inclusion of photo document for the invoices - Ability to email the expense account - Ability to track the expense accounts - ...
|
Business / UI classification : UI Code Component : wd260android.aar
This page is also available for…
|
|
|
| |
| Click [Add] to post a comment |
|
| |
|
| |
| |
| |
| |
| |
| |
| | |
| |