Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
When using AVFormatIDKeyIOS option and any of the AVEncodingOption options, the audio should record in those formats.
Actual behavior
When using AVFormatIDKeyIOS option, and specifying any of the AVEncodingOption other than aac, an error is thrown stating Error occured during recording.
Version of react-native-audio-recorder-player
3.0.12
Version of React Native
0.64.2
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
When using
AVFormatIDKeyIOS
option and any of theAVEncodingOption
options, the audio should record in those formats.Actual behavior
When using
AVFormatIDKeyIOS
option, and specifying any of theAVEncodingOption
other thanaac
, an error is thrown statingError occured during recording
.Steps to reproduce the behavior
this.state.audioRecorderPlayer.startRecorder(undefined, { AVFormatIDKeyIOS: AVEncodingOption.amr })
Side issue
Specifying a custom URI when calling the
startRecorder
method leads to the file not being found when recording is finished?