diff --git a/encoder/src/main/java/com/pedro/encoder/input/sources/video/Camera2Source.kt b/encoder/src/main/java/com/pedro/encoder/input/sources/video/Camera2Source.kt index f1c195096..616076e96 100644 --- a/encoder/src/main/java/com/pedro/encoder/input/sources/video/Camera2Source.kt +++ b/encoder/src/main/java/com/pedro/encoder/input/sources/video/Camera2Source.kt @@ -175,8 +175,7 @@ class Camera2Source(context: Context): VideoSource() { fun getCurrentCameraId() = camera.getCurrentCameraId() fun openCameraId(id: String) { - if (isRunning()) stop() - camera.openCameraId(id) + if (isRunning()) camera.reOpenCamera(id) } fun enableOpticalVideoStabilization(): Boolean {