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
[camera] Orientation issues for the camera and the taken file #89216
Comments
cc @BeMacized |
I'd love to take a further look into this, but sadly I don't think I have the hours available to do so currently. |
Take your time, there are some alternative solutions like use some other sensor plugin to integrate along with this plugin, but those are not good for nested controls. |
Added a new issue about the orientation in the top comment, which is related to iOS. |
camera: 0.9.3 Hey Team am facing issue in iOS only .. where user's phone auto rotation is ON/Unlocked and orientation of camera screen is set to in iphone now if user changes phone's orientation to landscape, camera orientation also changes ..nothing else (no other widgets). In addition to this if autorotation is locked all goes well no orientation change. When it comes to android everything seems fine no change in camera or widgets orientation in both cases ..auto-rotation locked or not |
I've taken a quick look and have some thoughts: Unable to get the orientation during the rotation if the Auto rotate is locked in the system.Not 100% sure, but from what I understand this should be correct. Since 0.9.0, the Preview is rotated with orientations even if the device is not support for those orientations on iOS.There is a bug here. It seems the preview rotation functions correctly when the orientation is locked either using the system lock, or the capture orientation lock, but fails when locking the orientation using Unable to get the orientation of the captured file.This indeed looks incorrect. I think captures should always be rotated according to the physical orientation of the device, unless this is overridden by the capture orientation lock. I haven't looked into why this is happening yet, but I'll see if I can produce a fix for this. |
This issue has been already added: #80881 and here's the PR for the same: flutter/plugins#3970 (comment) |
/cc @camsim99 Maybe you can take this issue? This actually makes the camera unavailable in relevant cases. |
Any news on this? I've ran into this on a project recently described in the issue above and the fact I cannot get the physical orientation on Android but I can on iOS is pretty blocking at the moment |
Hi! I would also like to know if there are any solutions to this problem. I am also experiencing this problem only on IOS. |
Any solutions or updates? |
You can find more up-to-date information about this issue in #111063. But no solution has been found yet. |
OK thanks. So currently there is no way to lock the camera to prevent it from turning in landscape mode...? |
In terms of Android, it seems like you can access the orientation via the |
They are all invalid in the cases I've described above, especially when the orientation lock is locked. The current behavior is not like any real-world cameras. |
This issue should be fixed in the CameraX implementation of the camera plugin, so please try it out! If you find a similar issue with that implementation (or any other issues), please feel free to file a separate issue. |
After 0.9.0 there are a lot of orientation issues have been solved, but we still got a few.
Steps to Reproduce
wechat_camera_picker
plugin which is more clear about what happened.Issues
🔘 Unable to get the orientation during the rotation if the Auto rotate is locked in the system.
We don't have the orientation stream exposed at present.
_deviceOrientationSubscription
is a privateStreamSubscription
.🔘 Unable to get the orientation during the rotation if the Auto rotate is locked in the system.
Below screenshots are all taken with landscape:
🔘 Preview is rotated with orientations even if the device is not support for those orientations on iOS
Orientations allowed by default are [portraitUp, landscapeLeft, landscapeRight]. When we trying to make the same behavior of rotations, iOS's preview was rotated even if the orientation (here is portraitDown) is not supported to rotated to. See the video for how they behave differently.
FD063897865DD91E8103EDC1B51949F9.mp4
The text was updated successfully, but these errors were encountered: