Record audio from any voice recorder app (try with ios and android also). It will save in mp3 format.
Play both recorded audio in android and iOS.
Both audio play in android, but iOS failed to play both.
Note: Files are not recorded via react-native-audio. It's from another app.
:beetle: What is the observed behavior?
It failed to play recorded audio in iOS.
failed to load the sound {code: "ENSOSSTATUSERRORDOMAIN1818327410", message: "The operation couldn’t be completed. (OSStatus error 1818327410.)", nativeStackIOS: Array(17), domain: "NSOSStatusErrorDomain", userInfo: {…}}
:beetle: What is the expected behavior?
It should play Voice recorded audio in iOS also.
:beetle: Please post your code:
loadSound = playSeconds => {
file = filePath + '/' + date + this.state.fileType;
setTimeout(() => {
this.sound = new Sound(file, '', error => {
if (error) {
Logger.log('failed to load the sound', error);
} else {
this.startPlaying();
}
});
}, 100);
};
Which versions are you using?
React Native Sound: "0.10.9",
React Native: "0.59.3"
If your problem is happening on a device, which device?
:beetle: Description
Reproducible step:
:beetle: What is the observed behavior? It failed to play recorded audio in iOS.
failed to load the sound {code: "ENSOSSTATUSERRORDOMAIN1818327410", message: "The operation couldn’t be completed. (OSStatus error 1818327410.)", nativeStackIOS: Array(17), domain: "NSOSStatusErrorDomain", userInfo: {…}}
:beetle: What is the expected behavior? It should play Voice recorded audio in iOS also.
:beetle: Please post your code:
Which versions are you using?
If your problem is happening on a device, which device?