Skip to content

Commit 6932436

Browse files
committed
make camera2 prepareCamera with surface public
1 parent c1fdfc0 commit 6932436

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

encoder/src/main/java/com/pedro/encoder/input/video/Camera2ApiManager.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class Camera2ApiManager(context: Context) : CameraDevice.StateCallback() {
131131
prepareCamera(surfaceTexture, width, height, fps)
132132
}
133133

134-
private fun prepareCamera(surface: Surface, fps: Int) {
134+
fun prepareCamera(surface: Surface, fps: Int) {
135135
this.surfaceEncoder = surface
136136
this.fps = fps
137137
isPrepared = true

0 commit comments

Comments
 (0)