Closed amirito closed 2 years ago
Thank you
I found the solution here
you should just leave the second parameter to be null
import Sound from 'react-native-sound';
const sound = new Sound('http://sounds.com/some-sound', null, (error) => {
if (error) {
// do something
}
// play when loaded
sound.play();
});
:beetle: Description
getDuration() and getNumberOfChannels() methods always return -1 in iOS it works well in Android
:beetle: What have you tried?
I tried .aac and .mp3 formats in both iOS emulator and physical iOS device
:beetle: Please post your code:
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...