-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
MultiCamera : In Android 10 and 11, PictureController takePicture does not return on device with multi camera #68
Comments
Log
Clicked on the shutter button
|
Hello, thank you reporting this. I'll try to reproduce this quickly. |
Hi @g-apparence I am also using camera_awesome: ^0.2.1+2 plugin.
But if run the app on lower Android version it is running successfully. But one more thing, I am also facing these errors while using official camera plugin
If these errors on my emulator or flutter side what do you suggest? |
I will try on an emulator (I'm only testing on real device for better behavior). |
I've made an experiment removing the camera_awesome and using the camera lib. The same LG K61 Android 10 mobile device listed 2 rear cameras. I could get a picture taken with the second camera only, not the first one. Using the first available rear camera, the picture is not taken but it returns a timeout result, while camera_awesome does not return anything, it hangs. |
Oh so maybe that's more on the fact that it has 2 rear cameras. |
Okay, after some digging it seems that multi camera devices has to open logical camera and then related physical device. https://developer.android.com/training/camera2/multi-camera I'll try to get a multi camera device to try fixing it. |
@g-apparence This seems to be pretty important as many newer devices will have multiple cameras. I'd love to help resolve this since I have a multi-camera device. Would you mind sharing any thoughts/guidance on what needs to be implemented or fixed to get this working? Happy to dive in. |
Hi Jon, I'd be happy to get some help, thank you!
How is structured camerAwesome:
What needs next: The question is do we have to start all camera in a multi Camera or the ability to choose which one to start. I think it's more like this but the Idea behind cameraAwesome is to make it simple. The plugin should work without specifying a list of complex camera id by default. Maybe the ability to choose which sensors inside the multiCamera can be interesting. Here is the state. Hope I helped you understand the current state. Don't hesitate to ask :) . |
@g-apparence Things have gotten pretty busy again. I ended up getting the functionality I needed out the flutter camera plugin. So I probably won't have time to dive in. Sorry mate! |
@j0nscalet No problem 👍 |
Hi, did you managed to load other physical cameras etc. ultrawide camera with the camera plugin? |
Closed, please reopen if this bug occurs on latest stable v1.0.0 👍 |
Steps to Reproduce
Expected results
The picture is taken and the picture can be viewed on the screen
Actual results
The picture is not taken.
While debugging the code, it waits the following code to return:
await _pictureController.takePicture(filePath);
It was working as it should when the mobile device was using Android 9. But it stopped working when it was updated to Android 10.
About your device
The text was updated successfully, but these errors were encountered: