Force front camera on Android

Hi!

I’m testing the example explained here:

http://coronalabs.com/blog/2013/11/05/tutorial-captureselect-photo-and-video/

But the demo uses the rear camera, and for my app I need to use only the front camera. ¿There is any way to force capture the front instead of the rear camera?.

I’ve tried to enable the userpermissions on the build.settings, but there’s no difference.

Any tip?

Thanks!.

No.  There is no way to do this.  Not on Android or iOS.

That said, the camera app that gets launched on Android typically displays an option to switch from rear to front facing camera and vice-versa.

Thanks for your reply Joshua.

No.  There is no way to do this.  Not on Android or iOS.

That said, the camera app that gets launched on Android typically displays an option to switch from rear to front facing camera and vice-versa.

Thanks for your reply Joshua.

Xcode can do it though, I believe…and it would be great to be able to at least sense which camera was being used so you could scale an image accordingly to say fit within a photomask.

Xcode can do it though, I believe…and it would be great to be able to at least sense which camera was being used so you could scale an image accordingly to say fit within a photomask.