cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Bowser <bows...@gmail.com>
Subject Re: org.apache.cordova.camera: Selecting the front-facing camera on Android
Date Thu, 30 Jul 2015 15:46:39 GMT
It's not guaranteed to work and it doesn't work past 2.3.

On Thu, Jul 30, 2015, 8:49 AM Anders Borg (Abiro) <anders.borg@abiro.com>
wrote:

> The Android API does have support for forcing (or maybe gently suggest)
> that
> the front-facing camera should be used if available, supposedly since 2.3.
>
> The documentation for the plugin specifically says nothing will happen, and
> I've checked that it's true, so ipso facto.
>
> Any hard reason this would not work, provided it was added? To support
> lower
> versions?
>
> I found this to be enlightening (note: 2.3):
>
> http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-andro
> id-platform
> <http://stackoverflow.com/questions/2779002/how-to-open-front-camera-on-android-platform>
>
> The plugin doesn't use Camera or CameraInfo at all. Rather it issues an
> IMAGE_CAPTURE intent.
>
> IMAGE_CAPTURE doesn't officially support such selection according to this:
>
> http://stackoverflow.com/questions/24413029/how-to-choose-front-camera-on-ne
> w-intent
> <http://stackoverflow.com/questions/24413029/how-to-choose-front-camera-on-new-intent>
>
> Time to switch to direct API use?
>
> Cheers,
> Anders
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
> For additional commands, e-mail: dev-help@cordova.apache.org
>
>

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