优化了 启动录制效果

This commit is contained in:
2026-06-05 18:52:47 +08:00
parent 26098114d2
commit e1446337e9
4 changed files with 22 additions and 5 deletions

View File

@@ -96,6 +96,15 @@ class RecordingCameraController(
return
}
if (
boundLifecycleOwner === lifecycleOwner &&
preview != null &&
videoCapture != null
) {
onReady(true)
return
}
try {
boundLifecycleOwner = lifecycleOwner
provider.unbindAll()