react-native-vision-camera icon indicating copy to clipboard operation
react-native-vision-camera copied to clipboard

✨ startRecording callback/promise

Open hirbod opened this issue 2 years ago • 3 comments

What feature or enhancement are you suggesting?

Would be lovely to have a callback or / be able to use await startRecording() in order to make sure that recording indeed did start.

https://github.com/mrousavy/react-native-vision-camera/blob/main/example/src/views/CaptureButton.tsx#L119

What Platforms whould this feature/enhancement affect?

iOS, Android

Alternatives/Workarounds

No workaround currently

Additional information

hirbod avatar Jan 14 '22 09:01 hirbod

https://github.com/mrousavy/react-native-vision-camera/blob/00fc39891a5cd6c68121fd5cd5f6ede90c9eb333/ios/CameraView%2BRecordVideo.swift#L60-L63

mrousavy avatar Jan 14 '22 09:01 mrousavy

Ok, I see! Gonna live with that for now :)

hirbod avatar Jan 14 '22 09:01 hirbod

Started working on something here: https://github.com/mrousavy/react-native-vision-camera/pull/2194

as of now this doesn't really work, but we'll see what we can do

mrousavy avatar Nov 21 '23 15:11 mrousavy

Closing because this is being tracked in https://github.com/mrousavy/react-native-vision-camera/issues/1319

mrousavy avatar Jan 15 '24 12:01 mrousavy