-
-
Notifications
You must be signed in to change notification settings - Fork 266
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
Wide Angle & Zoom Lens Switching? #195
Comments
Hello, |
It's done on iOS, missing the Android part. |
@istornz amazing work! Is this possible on Android? I believe I saw another thread that maybe questioned whether it was possible or not. |
@jamesdixon Thanks, I think it's possible but complicated, any advise @apalala-dev ? |
@jamesdixon It should be possible but for some reason I am only getting 2 camera ids (one for front and one for back camera) whatever I do. Same goes for CameraX extensions (night mode, HDR...). In theory, the code is ready but my code or CameraX API is broken atm 😅 I am trying with devices from Firebase Test Lab since my own is getting old (Xiaomi Mi 9T), but even a Pixel 7 Pro doesn't return more than 2 cameras and can't use CameraX extensions. We'll let you know if we figure it out! |
On Android, there is a concept of "logical camera" and "physical camera". A logical camera can use multiple physical camera. Most of the time, it seems that there is only one logical camera for each side of the phone and I didn't find a way to directly use the physical camera with CameraX. However, it is still possible to switch between several cameras with different capabilities by setting a specific zoom to them. |
Thanks all! |
Hi All, @istornz @apalala-dev |
Proposal
Include the option to cycle through all available camera/lenses.
iPhone Pro has 3 different lenses / cameras. I recall using a Flutter app/package that allowed you to cycle through all the lenses which included the wide-angle the regular as well as the zoom lens. It was a while back but I think it was just a matter of allowing 4 cameras in the list rather than 2.
Any plans for this?
Thanks
The text was updated successfully, but these errors were encountered: