Open ravi0the0sun opened 3 years ago
I just tried to play a .wav file on iOS 16.7.7 with rnarp 3.6.7. Nothing happened, no error, nothing. Did I do something wrong, or is that the current expected behavior?
Sorry, I did something wrong. With this audioSet it worked:
const audioSet = {
AudioEncoderAndroid: AudioEncoderAndroidType.DEFAULT,
AudioSourceAndroid: AudioSourceAndroidType.MIC,
AVModeIOS: AVModeIOSOption.measurement,
AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.low,
AVNumberOfChannelsKeyIOS: 1,
AVFormatIDKeyIOS: AVEncodingOption.wav,
};
So now my question is, why is this issue still open?
Version of react-native-audio-recorder-player
"react-native-audio-recorder-player": "^2.6.2"
Platforms you faced the error (IOS or Android or both?)
IOS
Expected behavior
When provided with a URL link to a .wav file audio in
audioRecorderPlayer.startPlayer(URL)
function noting happens.Actual behavior
Should have played the audio.
Steps to reprodue the behabior
when we use the url for the wav file the player does not play anything
Request
can we get support on saving the recordings in .mp3 or .wav file. Thank you for this package.
React Native Project info