camera-samples icon indicating copy to clipboard operation
camera-samples copied to clipboard

VideoRecordEvent.Finalize.ERROR_INSUFFICIENT_STORAGE is never called

Open AlmecDoux opened this issue 1 year ago • 0 comments

When recording video via Recorder, I try to handle an error when there is not enough memory for the recorded video. The documentation has an example with this case (developer.android). But according to the androidx.camera.video.Recorder code, the VideoRecordEvent.Finalize.ERROR_INSUFFICIENT_STORAGE event is never called. In real use, I receive VideoRecordEvent.Finalize.ERROR_INVALID_OUTPUT_OPTIONS in VideoRecordEvent with the error java.io.FileNotFoundException: /data/user/0/**/file_name.mp4: open failed: ENOSPC (No space left on device). Also, if the space runs out during recording, then VideoRecordEvent stops receiving any events, including VideoRecordEvent.Status

AlmecDoux avatar Jul 30 '24 14:07 AlmecDoux