Camera Plugin

Stable version 7.1.1 (Compatible with OutSystems 11)
Other versions available for 10
Published on 14 Sep by 
4.4
 (45 ratings)

Camera Plugin

Details
A plugin that enables an application to access the camera features of the user’s device. This plugin allows the implementation of actions for taking pictures or choosing images from the device gallery.
Read more

A plugin that enables an application to access the camera features of the user’s device. This plugin allows the implementation of actions for taking pictures or choosing images from the device gallery.

 

How to use

Create your own Logic

To allow users to take a picture and use it on the application with the camera's device, use the TakePicture client action in a suitable Logic Flow (see Documentation tab). If a picture is successfully taken, it will be available in binary on the Output Parameter ImageCaptured. When using the TakePicture client action you can change image quality parameters such as quality, size, and encoding type to best suit your needs.

You can also use the ChooseGalleryPicture client action to allow users to choose an image from their device and use it on the application. If an image is successfully selected, it will be available in binary on the Output Parameter ImageChosen.


Using Accelerators

You can use the TakePicture block included in the plugin. To correctly implement the TakePicture block, drag and drop it on the screen, define a handler action, and assign its Output Parameter to a Local Variable. 

To enable the Choose Image feature included in the plugin, follow the same process using the ChooseImage block.

 

Sample demo App

Use the dropdown on the Download button at the top of the page to test our demo app called CameraDemoApp. You’ll be able to see an example of how the current version of the Camera Plugin is implemented, and access a menu where you can change and try out different settings.


MABS Compatibility

The latest version (7.0.0) of Camera Plugin is compatible with the supported MABS versions available: 

  • MABS 7.0 

  • MABS 6.3 


PWA Compatibility

Starting from version 6.0.0, this plugin can be used in web browsers and Progressive Web Apps (PWAs).


You can check the supported devices and browser versions here.


Known issues with plugin in Web:

  • The ChooseImage action isn’t available for Progressive Web Apps;

  • In some Chrome versions, the image appears rotated when displayed using an image widget.

  • In iOS 13.2 and 13.3, the camera may stop working due to the WebKit 206219 bug. If the camera stops working, swipe up the app in App Switcher and reopen the app. WebKit is working on the fix.


Licensing

Camera plugin for Apache Cordova

Apache License 2.0

Copyright 2012 The Apache Software Foundation

What’s new (7.1.1)
  • Added Editing features to the plugin: crop, rotate and flip.
  • This version of the plugin is compatible with MABS from version 7.0 onwards.
  • Fixed plugin incompatibility problem with other plugins.
  • Fixed camera launching for Android 12.


Reviews (1)
22 Feb
in version 6.2.0
No TakeVideo action
More from OutSystems