From 69324363f5b730d2e61117e738d38cfae70966b3 Mon Sep 17 00:00:00 2001 From: pedroSG94 Date: Fri, 29 Nov 2024 12:53:25 +0100 Subject: [PATCH] make camera2 prepareCamera with surface public --- .../java/com/pedro/encoder/input/video/Camera2ApiManager.kt | 2 +- 1 file changed, 1 insertion(+), 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 d34c99587..3b82574bd 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 @@ -131,7 +131,7 @@ class Camera2ApiManager(context: Context) : CameraDevice.StateCallback() { prepareCamera(surfaceTexture, width, height, fps) } - private fun prepareCamera(surface: Surface, fps: Int) { + fun prepareCamera(surface: Surface, fps: Int) { this.surfaceEncoder = surface this.fps = fps isPrepared = true