Open Mikewa33 opened 1 month ago
yea, this is a bug.
Any update on this? facing similar issue
"react": "18.2.0",
"react-native": "0.74.1",
"react-native-vision-camera": "^4.0.3"
No update yet, if you want me to fix this for ya, contact me thru my agency or sponsor this issue.
What's happening?
I logged every appendBuffer call at all if cases that are commented. While the video is recording we get a ton of
But our design calls for a pause function before saving. So we pause the video before calling stopRecording. When paused the buffer logs don't write cause the camera is paused. We have a button for the user to save and that calls stopRecording(). When that is called then these logs happen
On the react side the camera init looks like this
When the user pauses the recording we call
cameraRef.current.pauseRecording();
We then have buttons to save or retake the video. On save we call
cameraRef.current.stopRecording();
I think because it is in a pause state when we call stop no buffers are being called and that prevent finish() from happening as it normally would
Reproduceable Code
Relevant log output
Camera Device
Device
iPhone SE
VisionCamera Version
3.9.1
Can you reproduce this issue in the VisionCamera Example app?
No, I cannot reproduce the issue in the Example app
Additional information