We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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|
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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)
However, if I specify the source type and camera device as below, it works.
The text was updated successfully, but these errors were encountered: