Hello - jumping onto this thread. This intrinsic zoom ratio is super helpful - thank you so much for including it. I'll be using it to let users access the wide angle lens for devices like the S21 where the Samsung didn't include the wide angle in the logical lens list. I used to have to access Camera2 devices and do some math myself to figure out if there was a wide angle lens and switch to that if so. Glad to not have to do custom stuff anymore. Quite a few Samsungs require the custom code to access the wide angle (I know that's their fault and not Android CameraX's), so this is a great improvement.
This might be a silly question, but do you know of a good way to detect what the correct zoom ratio is when using the cameraSelector with an intrinsic zoom ratio of <1? I would like to display to the user what zoom level they're using.
I've noticed on my S21 that using the cameraSelector with an intrinsicZoomRatio < 1 does correctly use the wide angle camera - I can tell from the previewView and outputted video content. But, when I call camera.cameraInfo.zoomState.value.zoomRatio, it comes back with a ratio around 1.0x. I'd expect to see a number <1.0x since the wide angle is being used. Do I have to do something different here since the wide angle lens isn't included in the logical camera?
Thank you,
Aubrey