Closed aterbo closed 7 years ago
Great @aterbo thanks you saved my day. First we have to manually create the file then we have to start recording, how we do in normal media recorder.
@aterbo thanks for providing the documentation. I had no idea why it wasn't working until I read this. Has anyone looked into submitting a PR to resolve this?
Should be fixed in 1.3.1
.
@lassana thank you for addressing this issue, I just tested it and it works like a charm
When using the standard MediaRecorder class, it is not necessary to create a file on the device prior to recording, as long the destination file path is set, using MediaRecorder.setOutputFile(String outputFilePath).
When using AudioRecorder, the output file needs to be created and the destination file path to this output file needs to be set prior to recording, using AudioRecorderBuilder.fileName(String outputFilePath).
Here is the original code using MediaRecorder, which was functional:
Here is the functional version of the code using AudioRecorder:
I believe this error is occurring due to some issue with Mp4ParserWrapper not properly creating the file, which I believe should happen in Line 49.
An example of the final value of the String outputFile is: /data/user/0/com.packageName.app/files/fb0409ac7dd743d6867151c034d145b8.mp4
I'm using a Samsung Galaxy 5 and Android 6.0.
Thanks, Andy