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