camera-samples
camera-samples copied to clipboard
VideoRecordEvent.Finalize.ERROR_INSUFFICIENT_STORAGE is never called
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