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

Fix some issues with front camera #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix some issues with front camera #25

wants to merge 1 commit into from

Conversation

8700nd
Copy link

@8700nd 8700nd commented Nov 28, 2022

  1. Fixed UI freezing when switched to front camera.
  2. Get the orientation from devices' camera sensor instead of hardcoding the rotation.

切换摄像头时cameraSource没有resume,ImageReader用了主线程的looper,导致UI卡住无法操作
一些型号的手机的相机旋转角度不一定是90,270,如果直接从相机里读取比hardcode更好

1. Fixed UI freezing when switched to front camera.
2. Get the orientation from devices' camera sensor instead of hardcoding the rotation.
@8700nd
Copy link
Author

8700nd commented Nov 28, 2022

Screen Shot 2022-11-28 at 17 14 36

@8700nd 8700nd closed this by deleting the head repository Dec 7, 2022
@8700nd 8700nd reopened this Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant