zmxv / react-native-sound

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

Audio continuously play after closing screen. #708

Open tarbundiyahitesh21 opened 3 years ago

tarbundiyahitesh21 commented 3 years ago

one amazing issue i raised. When we open play screen that time load url in Sound like this.

whoosh = new Sound("write here any mp3 url", null, e => { if (e) { console.log('error loading track:', e); } else { whoosh.play(success => { if (success) { console.log('successfully finished playing'); } else { console.log('playback failed due to audio decoding errors'); } }); }

Step to Regenerate:

I used whoosh.release() this work when url loaded completely and close the screen, that time audio stop. ### But when url is loading that time screen close that time audio continuously play. How to solve this?

cenaHara commented 3 years ago

hi @tarbundiyahitesh21 any solution ?

hiteshsatetechnologies commented 3 years ago

hi @tarbundiyahitesh21 any solution ?

no