Open 12343954 opened 6 years ago
If you're on iOS:
Sound.setCategory("Playback", true);
Be sure to edit Info.plist, as described in the wiki: https://github.com/zmxv/react-native-sound/wiki/API#soundsetcategoryvalue-mixwithothers-ios-only
@johntitus thank you so much !
if(isIOS){
// Sound.setCategory('Playback', false);
Sound.setCategory('Ambient', false);
}
this is the correct effect! app won't interrupt other music session!
Works fine on IOS, it doesn't on android. Any ideas ?
(react-native 0.57.1)
have no idea on android!
I need this feature for android, any ideas yet ?
Just search keyword mixWithOthers
in below two place:
And found the mixWithOthers
option is working under android
@wokenqingtian thank you, i'll try.
i listen the music app,then i jump into ‘react-native-sound’ code, it interrupt the player immediately.
i just use ‘react-native-sound’ to make a beep sound,i don't want to interrupt the music player.
what can i do ? thank you !