Capture Button

The Capture Button lets you access to the Camera (or the Photo/Video Library).

This Widget is available with Thorium 3.1

...

Properties

Media Type: Image or Video

Show Photo Library Menu: if selected, then the user can choose to load a picture/video from the Camera or from its user library.

Camera: This option is available only when using a direct access to the Camera. The options are:

- user: user-facing camera and/or microphone
- environment: outward-facing camera and/or microphone

When the user select/capture a photo/video, an event "captureSuccess is triggered, for exemple:

app.on('captureSuccess', function (sender,url) { });

Sender is a reference to the Button, and url contains the url of the file.

Test the Tutorial App at: https://www.thoriumbuilder.com/tutorial_detail.html?id=159383552

...

Example with “Show Photo Library"

Copyright©  Nymphide Lab 2020 - All Rights Reserved 

...