zmxv / react-native-sound

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

fix ios pause check #736

Closed varungupta85 closed 2 years ago

varungupta85 commented 3 years ago

When the interruption ended event is received, we check if the player is playing and only then play the music. But the music stopped when the interruption begin event is received, so the player is not playing and hence the music will not be started again.

varungupta85 commented 3 years ago

Could somebody please review this and let me know if the change make sense.

byron-devika commented 2 years ago

This fixed issues for me on iOS when playing other audio applications in the background such as Spotify.

I'm running RN 0.66.1