Cameraview - Determining which Camera Infos are wide angle #2347
Replies: 2 comments 1 reply
-
At present there is no way to determine this. We would happily accept this functionality though if you are willing to provide it? |
Beta Was this translation helpful? Give feedback.
-
My solution right now is that I added the device ids to the code. I think they are mapped to AVCaptureDevice.DeviceType, https://developer.apple.com/documentation/avfoundation/avcapturedevice/devicetype-swift.struct, so it should be fun. But for Android I only get two cameras, one for rear and one for front. So does that mean that wide angle is not supported for Android? Camera app has 0.6 as an zoom option, but MinimunZoom starts on 1 for Android so it is not possible to do it by setting a low zoom value either. |
Beta Was this translation helpful? Give feedback.
-
We're trying to transition from the CameraView in an older Maui camera library, https://github.com/hjam40/Camera.MAUI over to the MCT one.
We've noticed that there isn't a straightforward way of determining which CameraInfos provided are wide angle lens or regular angle lens.
With hjam40's camera library, we were able to determine which lens was the wide angle lens based on the horizontal viewing angles,
With the camera info that we receive from the Maui Community Toolkit, it looks like the only way we could determine this would be the names of the cameras. Is there a better way to determine this?
Examples of camera info received from a few different devices with the MCT:
MCT camera info examples.json
Beta Was this translation helpful? Give feedback.
All reactions