zmxv / react-native-sound

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

Music stops on initial app startup #559

Closed austincline09 closed 3 years ago

austincline09 commented 5 years ago

If I'm playing music from any player and then boot up my app with react-native-sound, the music stops no matter what. However, once the app is open and in the background everything is fine. So it's just on the initial start up of the app. I've noticed on the simulator, it asks my computer for microphone access on startup as well. I'm looking to get rid of that because I think it's related

olegdater commented 5 years ago

same problem on iOS here

adding this to AppDelegate.m per instructions on the internet did not help :(

  [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryAmbient error:nil];
  [[AVAudioSession sharedInstance] setActive:YES error:nil];
bkmed commented 5 years ago

same here any solution yet ?

ammichael commented 5 years ago

Any solution to this? I've ran into it as well.

jweinraub commented 5 years ago

I am keen to know this too!

paulmelnikow commented 5 years ago

If you're having the same issue, please :+1: the top post instead of adding a comment. It makes less noise for everyone 😃

danleveille commented 4 years ago

This is a duplicate of #431, right?

Farhankhaliid commented 3 years ago

@austincline09 can you please let me know how you git ride of this issue . i am also facing same issue while app boot up music stops.

Farhankhaliid commented 3 years ago

@olegwn any solution?

paulmelnikow commented 3 years ago

Closing in favor of #431.