Specify Front or Back Camera - MediaPicker CapturePhotoAsync() #9520
Unanswered
rossatkinson265
asked this question in
Ideas
Replies: 1 comment 3 replies
-
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When opening the device's camera I would like to specify that the camera should open on the front camera.
I am using MediaPicker.Default.CapturePhotoAsync() to open the device's camera and capture a photo.
I am developing a tablet application and the behaviour I have observed on test devices is as follows:
Behaviour on Android Samsung tablet:
Camera remembers previous settings, therefore if the user changes to front camera on first open, the subsequent open will also be front camera. This is good because the user only has to switch to front camera once.
Behaviour on iOS iPad:
Camera always defaults to rear camera, regardless of previous camera settings. This is frustrating because the user has to switch to front camera each time they clock in.
Suggestion:
I notice that the CapturePhotoAsync method can accept MediaPickerOptions as a parameter. If feasible, it would be nice to be able to specify which camera the device should open with, as part of the MediaPickerOptions parameter, or potentially overload the method and add a CameraOptions parameter, which would enable us to specify front or rear camera.
Beta Was this translation helpful? Give feedback.
All reactions