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

解决切换前置系统奔溃,报setParameters错误 #28

Open
ITzhangyan opened this issue Apr 25, 2018 · 0 comments
Open

解决切换前置系统奔溃,报setParameters错误 #28

ITzhangyan opened this issue Apr 25, 2018 · 0 comments

Comments

@ITzhangyan
Copy link

ITzhangyan commented Apr 25, 2018

在这里加判断试试:
if (focusModes != null) {

                for (String mode : focusModes) {

                    if (mode.contains("continuous-video")) {

                        parameters.setFocusMode("continuous-video");
                    }
                }
            }

mCamera.setParameters(parameters);
报错原因:需要验证,相机是否支持聚焦模式。

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

No branches or pull requests

1 participant