Skip to content
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

🚀 Use sensors to determine capture orientation #218

Merged
merged 9 commits into from
Oct 30, 2023

Conversation

AlexV525
Copy link
Member

resolves #208, resolves #210

@AlexV525 AlexV525 marked this pull request as ready for review October 28, 2023 04:10
@AlexV525 AlexV525 merged commit 5370cca into main Oct 30, 2023
5 checks passed
@AlexV525 AlexV525 deleted the feat/lock-capture-orientation branch October 30, 2023 08:28
@XutongGithub
Copy link

问题:拍照时旋转屏幕,拍照内容也旋转,但按下拍照内容又是正方向的
https://github.com/fluttercandies/flutter_wechat_camera_picker/assets/13117057/2064bfa6-65e2-48e1-9617-aacad00e7b52
可以看下这个视频,iOS端会出现这个问题

@AlexV525
Copy link
Member Author

可以看下这个视频,iOS端会出现这个问题

通过 issue 提供完整可复现的信息,并且使用 example 而不是自己的项目测试

@fusu2024
Copy link

fusu2024 commented Apr 25, 2024

无法设置期望的方向:lockCaptureOrientation 设置为portraitUp,但是不起作用。
可以用example来尝试一个场景:iOS手机方向锁关闭
1、用xcode打开iOS工程,设置iPhone orientation仅仅支持portrait
2、运行example,选择“自动预览录制的视频”
3、拍摄过程中,将真机横向,会看到问题

期望:
1、在旋转过程中,UI保持portraitUp;
2、录制视频正常。lockCaptureOrientation设置后,旋转会有视频方向的切换

@fluttercandies fluttercandies deleted a comment from XutongGithub Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants