Chieftain

Results 3 comments of Chieftain

This is the code to rebind the camera, I'm using compose btw

java.lang.RuntimeException: Recording was stopped before any data could be produced. W/System.err: at androidx.camera.video.Recorder.stop(Recorder.java:856) W/System.err: at androidx.camera.video.Recording.stop(Recording.java:164) W/System.err: at com.brief.snacks.ui.create.components.capture.CameraComponentKt$CameraComponent$1$2.emit(CameraComponent.kt:101) W/System.err: at com.brief.snacks.ui.create.components.capture.CameraComponentKt$CameraComponent$1$2.emit(CameraComponent.kt:74) W/System.err: at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SafeCollector.kt:15) W/System.err: at kotlinx.coroutines.flow.internal.SafeCollectorKt$emitFun$1.invoke(SafeCollector.kt:15) W/System.err: at...

This is all, another point is after camera switch from LaunchedEffect(viewModel.lensFacing.value), the camera inside the videoCapture is null but before the camera switch in the first use case there is...