When this task executes, it opens a camera to capture the media. This task can be implemented in those apps where the user needs to capture the media (image or video) frequently.
Steps to Configure
- On the Event Configuration page, find the Task panel.
- In the Task panel, search and find the Open Camera task.
- Drag the Open Camera task from the Task panel to the Execution panel.
- Under Open Camera, a group of boxes appears.
- In the boxes, configure different properties as follows:
|Reference Name||In this box, enter the name of the task. Also, the system generates a reference name by default that you can change.||Yes|
|Camera Mode||Click this list and then select any of the following camera mode:|
–> Take Picture:- This option allows you to capture the image of the object.
–> Take Video:- This option allows you to record the video of the object.
|Default Mode||Click this list and then select any of the following modes of the camera’s direction:|
–> Front Camera:- This option activates the front camera of the device.
–> Back Camera:- This option activates the back camera of the device.
|Camera Resolution||Click this list to select any of the following resolutions for the captured media (Image or video):|
–> Ultra HD
|Doc ID||In this box, enter a unique ID (For example:- aadhr_id). The application uses this unique Doc ID to manage multiple media files of a single document at the database level.|
Later, the application uses the same unique Doc ID to fetch the records of the media files from the database.
|Base File Path||In this box, enter the path to a storage location where the application will store the media in the app storage after the “Open Camera” task captures the media.||No|
|File Prefix Name||In this box, enter a prefix name. This prefix is automatically prefixed to the name of the media file when it is saved to the intended location.||No|
|Max File Allowed||In this box, enter the maximum permissible number of media that the end-user can capture of an object.||No|
|Max File Size||In this box, enter the maximum permissible size of a media file that the end-user can locally save.||No|
|Base 64||Click this check box to activate the feature that captures the media with the base-64 format.||No|
|Crop||Click this check box to activate the crop feature.||No|
|Watermark||Click this check box to activate the watermark feature. This feature displays the watermark on the captured media.||No|
|Output Location||In this box, you can configure the location to store the captured media at the database level. After the “Open Camera” task captures the media (image or video), the captured media file is automatically saved to the configured JSON-based location in a specific data source.|
To configure the location:
–> In the Output Location box, click the application tree icon (), and the right panel displays the Output Location area.
–> In the Output Location area, click the Source list and then select a data source (For example:- Data Store).
–> After you select a data source, the right panel displays the tree of the JSON-based locations in the data source.
–> In the tree, select a location to store the captured media file.
–> After you select the location, click Select, and the output location is successfully configured.
|Reload Elements||In this box, configure the elements that the application will reload after the “Open Camera” task captures the media.|
To configure the elements:
–> In the Reload Elements box, click the application tree icon (), and the right pane displays the Reload Elements area.
–> In the Reload Elements area, see the application tree.
–> In the application tree, select the elements that the application will reload.
–> After you select one or more elements, click Select, and the elements are successfully configured.
|Business Rule||In this box, you can configure a business rule to determine the execution of the Open Camera task. If the user’s action satisfies the condition in the business rule, the Open Camera task is executed.|
To configure the business rule:
–> In the Business Rule box, click the application tree icon (), and the Business Rule panel opens.
–> In the Business Rule panel, click Create New to configure a new business rule.
- After you configure the related properties, click Save to configure the Open Caemra task.
Was this article helpful?