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

focus always "fixed" #20

Open
ToysoftInc opened this issue Apr 28, 2023 · 0 comments
Open

focus always "fixed" #20

ToysoftInc opened this issue Apr 28, 2023 · 0 comments

Comments

@ToysoftInc
Copy link

ToysoftInc commented Apr 28, 2023

Another question. This might fix the issue I'm having with the preview quality.
When I goto the Setting screen the focus option is only "fixed".

this is the builder

    val cameraBuilder = CameraBuilder(activity)
        .useDefaultConfig()
        .setFacing(Camera.CameraInfo.CAMERA_FACING_BACK)
        .setPreviewSize(Size(1140, 2560))
        .setRecordingHint(true)
        .setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO, Camera.Parameters.FOCUS_MODE_CONTINUOUS_VIDEO, Camera.Parameters.FOCUS_MODE_MACRO)

I even tried in code

            mCameraController?.setFocusMode(Camera.Parameters.FOCUS_MODE_AUTO)

and still does not work.

I'm using Samsung S10 android os13 and I know it has auto focus.
supported=[fixed]

on Samsung S23+ it does report
supported=[infinity, auto, macro, continuous-video, continuous-picture]

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