VideoRecorder
VideoRecorder copied to clipboard
focus always "fixed"
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]