Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device.camera.front uses rear camera #439

Open
kobaltz opened this issue Dec 12, 2014 · 0 comments
Open

Device.camera.front uses rear camera #439

kobaltz opened this issue Dec 12, 2014 · 0 comments

Comments

@kobaltz
Copy link

kobaltz commented Dec 12, 2014

I've found that whenever using the front camera, the rear one is being displayed instead.

For example, the below code will show the rear camera (using iPad Mini 2 with iPhone device family)

  Device.camera.front.picture(media_types: [:image]) do |result|

However, if I specify the source type and camera device as below, it works.

  camera = Device.camera.front
  camera.picker.sourceType = UIImagePickerControllerSourceTypeCamera 
  camera.picker.cameraDevice = UIImagePickerControllerCameraDeviceFront
  camera.picture(media_types: [:image]) do |result|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant