zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 749 forks source link

new Sound callback error is not executed when the sound path is incorrect. #507

Closed MehdiJarraya closed 5 years ago

MehdiJarraya commented 6 years ago

Hi guys, I tested this issue with react-native-sound 0.10.9 and 0.10.4 but the problem still persist.

 finalPist = new Sound(incorrectPath, null, (error) => {
            if (error) {
//This block is never executed 

            }
            else {
            }
          })
afilp commented 5 years ago

I have the problem of sounds not playing at all anymore, they used to be playing.

crack-boy commented 5 years ago

same as you

paulmelnikow commented 5 years ago

511 includes a fix for this on Android.

Are you having the problem on iOS too?

paulmelnikow commented 5 years ago

It looks like this was fixed in #405, at least for Android.