From c552d54578142002a65b974f752efdc3e6b0a364 Mon Sep 17 00:00:00 2001 From: pedroSG94 Date: Wed, 27 Nov 2024 13:25:01 +0100 Subject: [PATCH] remove auto control camera2 config --- .../main/java/com/pedro/encoder/input/video/Camera2ApiManager.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.kt b/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.kt index bac783ba7..7b569619e 100644 --- a/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.kt +++ b/encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.kt @@ -179,7 +179,6 @@ class Camera2ApiManager(context: Context) : CameraDevice.StateCallback() { private fun drawSurface(cameraDevice: CameraDevice, surfaces: List): CaptureRequest { val builderInputSurface = cameraDevice.createCaptureRequest(CameraDevice.TEMPLATE_PREVIEW) for (surface in surfaces) builderInputSurface.addTarget(surface) - builderInputSurface.set(CaptureRequest.CONTROL_MODE, CameraMetadata.CONTROL_MODE_AUTO) val validFps = min(60, fps) builderInputSurface.set(CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE, Range(validFps, validFps)) this.builderInputSurface = builderInputSurface