hyochan / react-native-audio-recorder-player

react-native native module for audio recorder and player.
MIT License
718 stars 215 forks source link

Specifying AVFormatIDKeyIOS causes recording to fail #366

Open itsphil opened 3 years ago

itsphil commented 3 years ago

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 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.

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?

divsbhalala commented 2 years ago

I am having same issue

anwersolangi commented 2 months ago

+1 Any update on this?