Not sure if this is a bug, but this doesn’t work:
setTimeout(() => cameraRef.current.stopRecording(), 100)
const {uri} = await cameraRef.current.recordAsync();
console.log("should be cancelled!")
The console will not log. If you change the timeout to 1000 it will work.
Also, if you replace with pausePreview() it will still not stop the video (just pause the preview).
The problem here is that there is no way for me to tell if the recording can actually be canceled. recordAsync does not guarantee that stopRecording() will actually function.
Managed SDK 39.