flex-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From OmPrakash Muppirala <bigosma...@gmail.com>
Subject Re: Detect rear camera?
Date Thu, 04 Jun 2015 23:01:06 GMT
You should be able to see how many cameras a device has by querying
Camera.names, which returns an Array.  The array contains the names of the
available cameras, which usually have meaningful names like "Back Camera",
"Front Camera", etc.

Thanks,
Om

On Thu, Jun 4, 2015 at 11:38 AM, deflator <d.flator@gmail.com> wrote:

> Hi all,
> I am trying to figure out a method to detect if the device has a rear
> camera
> or not.
> My app uses the rear camera for a bar code scanner. On a device without a
> rear camera, like my Nexus 7 tablet, it crashes when you try to initiate
> the
> scanner.
> It works fine when I setup the scanner to use the front camera, which the
> Nexus 7 has, but that is too awkward to use as a scanner. Using the qr-zbar
> ANE by sbhave for scanning.
> Thanks,
> Mark
>
>
>
> --
> View this message in context:
> http://apache-flex-users.2333346.n4.nabble.com/Detect-rear-camera-tp10507.html
> Sent from the Apache Flex Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message