Enterprise Browser 1.5 Camera API

// Expert user has replied.
T Tony Ruddock 3 years ago
5 1 0

As part of a web application we're writing I need to access the native camera on our TC70s.
 
I can see two APIs it's possible to use for this purpose:

The old "imager" API
The newer "camera" API

 
I've tried the "imager" API and it doesn't appear to fire up the native camera application,so I am not able to zoom.
 
I have also tried using the "camera" API. but no matter what I do, the camera won't show up to allow me to take a picture.
 
Does anyone have a working code example using the "camera" API?
 
Many thanks

Please register or login to post a reply

1 Replies

A Abhineet Agarwal

Dear Tony,

I have attached the sample Camera API page for your reference.

EB_Camera_API.html
ebapi-modules.js - This is used internally by EB_Camera_API.html page.

Copy both the above file to EnterpriseBrowser installed location in the device and set the StartPage tag value of Config.xml as mentioned below.
                          
After performing the above steps, relaunch the EnterpriseBrowser application. The sample Camera page will be opened which will allow to take the picture using device camera.
After page is open, one can check by performing the below steps in order.

Press Enumerate Camera button.
Select Camera type from the drop down menu which will populate possible camera objects(present in the device) after step 1 is performed.
Press Take Picture button to take the picture after performing step 2.
Press choose Picture button to replicate the captured image to the html page after performing step 3.

Please note:
- EnterpirseBrowser installed location in the device will be /Android/data/com.symbol.enterprisebrowser.
- Config.xml is also present under EnterpirseBrowser installed location.
- The sample Camera API is developed using EB Camera API. The online document for EB Camera API is available here.

Thanks & Regards,
Abhineet Agarwal
Enterprise Browser Software Lead

CONTACT
Can’t find what you’re looking for?