|
|
|
|
|
- Photos and videos saved
- Backup directories
- Application in the background: Specific case from Android 10
- Required permissions
VideoStartApp (Function) In french: VidéoLanceAppli Starts the device's native camera application to record a video or to take a photo. Remarks:   Syntax 2, which uses a non-locking call, is recommended, especially from iOS 8. - In a WINDEV application, VidéoCapture can be used to record a video or to take a photo with the camera of the device.
- This function is equivalent to CameraRunApp.
sPhoto is string
sPhoto = VideoStartApp(viPictureCapture)
IF sPhoto <> "" THEN
Info("Photo sauvegardée dans le fichier " + sPhoto)
END
nTypeEnregistrement is int
IF Dialog("Souhaitez-vous enregistrer une image ou une vidéo ?", ...
["Une image", "Une vidéo"], 1, 2, dlgIconQuestion) = 1 THEN
nTypeEnregistrement = viPictureCapture
ELSE
nTypeEnregistrement = viVideoCapture
END
VideoStartApp(nTypeEnregistrement, CB_VideoLanceAppli)
INTERNAL PROCEDURE CB_VideoLanceAppli(sChemin is string)
IF sChemin ~= "" THEN
Error(ErrorInfo())
RETURN
END
Info("Le fichier a été enregistré ici : " + sChemin)
END
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 get more details on the error, use ErrorInfo.
<Type of capture>: Optional integer constant Type of capture: | | viPictureCapture | Record a photo. | viVideoCapture (Default value) | Camera preview stream snip. |
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 more details on the error, use ErrorInfo.
<Type of capture>: Optional integer constant Type of capture: | | viPictureCapture | Record a photo. | viVideoCapture (Default value) | Camera preview stream snip. |
<WLanguage procedure>: Procedure name Name of the WLanguage procedure ("callback") called when the photo or video is recorded. 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.
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: wd300android.aar
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|