PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Photos and videos saved
  • Backup directories
  • Required application feature
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Starts the device's native camera application to record a video or to take a photo.
Remarks:
  • Universal Windows 10 App VideoStartApp must be run in a thread.
  • In a WINDEV application, VideoCapture can be used to record a video or to take a photo with the camera of the device.
  • Versions 22 and later
    This function is equivalent to CameraRunApp.
    New in version 22
    This function is equivalent to CameraRunApp.
    This function is equivalent to CameraRunApp.
Versions 17 and later
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 17
Universal Windows 10 App This function is now available for Windows Phone applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
sPhoto is string
sPhoto = VideoStartApp(viPictureCapture)
IF sPhoto <> "" THEN
Info("Photo sauvegardée dans le fichier " + sPhoto)
END
Versions 21 and later
nTypeEnregistrement is int
 
// Laisse l'utilisateur décider du type de capture
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
 
// Lance l'application
VideoStartApp(nTypeEnregistrement, CB_VideoLanceAppli)
 
INTERNAL PROCÉDURE CB_VideoLanceAppli(sChemin is string)
 
// Si le retour vaut chaîne vide (""), une erreur a eu lieu
IF sChemin ~= "" THEN
Error(ErrorInfo())
RETURN
END
 
// Message de fin d'enregistrement
Info("Le fichier a été enregistré ici: " + sChemin)
New in version 21
nTypeEnregistrement is int
 
// Laisse l'utilisateur décider du type de capture
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
 
// Lance l'application
VideoStartApp(nTypeEnregistrement, CB_VideoLanceAppli)
 
INTERNAL PROCÉDURE CB_VideoLanceAppli(sChemin is string)
 
// Si le retour vaut chaîne vide (""), une erreur a eu lieu
IF sChemin ~= "" THEN
Error(ErrorInfo())
RETURN
END
 
// Message de fin d'enregistrement
Info("Le fichier a été enregistré ici: " + sChemin)
nTypeEnregistrement is int
 
// Laisse l'utilisateur décider du type de capture
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
 
// Lance l'application
VideoStartApp(nTypeEnregistrement, CB_VideoLanceAppli)
 
INTERNAL PROCÉDURE CB_VideoLanceAppli(sChemin is string)
 
// Si le retour vaut chaîne vide (""), une erreur a eu lieu
IF sChemin ~= "" THEN
Error(ErrorInfo())
RETURN
END
 
// Message de fin d'enregistrement
Info("Le fichier a été enregistré ici: " + sChemin)
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 the details of the error, use ErrorInfo.
<Type of capture>: Optional integer constant
Type of capture:
viPictureCaptureSave 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:
viPictureCaptureSave a photo.
viVideoCapture
(Default value)
Capture a video sequence.
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure (also called "callback") called when Record the photo or video.
This procedure has the following format:
PROCEDURE <Nom de la procédure> (<Chemin>)

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:
viPictureCaptureSave a photo.
viVideoCapture
(Default value)
Capture a video sequence.
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure (also called "callback") called when Record the photo or video.
This procedure has the following format:
PROCEDURE <Nom de la procédure> (<Chemin>)

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:
viPictureCaptureSave a photo.
viVideoCapture
(Default value)
Capture a video sequence.
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure (also called "callback") called when Record the photo or video.
This procedure has the following format:
PROCEDURE <Nom de la procédure> (<Chemin>)

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.

Backup directories

Versions 21 and later
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of several application features in the application generation wizard.
Required features:
  • Microphone: This feature allows the applications to perform audio recordings.
  • WebCam: This feature allows the applications to capture videos or photos.
New in version 21
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of several application features in the application generation wizard.
Required features:
  • Microphone: This feature allows the applications to perform audio recordings.
  • WebCam: This feature allows the applications to capture videos or photos.
Universal Windows 10 App

Required application feature

The use of this function triggers the declaration of several application features in the application generation wizard.
Required features:
  • Microphone: This feature allows the applications to perform audio recordings.
  • WebCam: This feature allows the applications to capture videos or photos.
Related Examples:
WM Expense Account 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
Minimum version required
  • Version 16
This page is also available for…
Comments
Click [Add] to post a comment