Open kyrstencarlson opened 1 year ago
I'm facing the same issue (spent like 2 hours trying to find issue in react-native-video
to finally realize that problem is not there).
I'd like to add that playing the sound is not necessary to reproduce the issue, what causes the background music to stop is the new Sound(...)
call.
Well, this issue seems to be a duplicate of this one, and the workaround provided there does work for me.
One thing I noticed is that it's important to call Sound.setCategory('Playback', true);
BEFORE new Sound(...)
. It was not the case for my app, and so I thought that the workaround didn't work.
This will help https://www.youtube.com/watch?v=vVI7ZAZq5e0
:beetle: Description
The mix with others option on
setCategory('Playback', true)
does not work. It does not at all mix with sounds and causes all music playing in background (like spotify, apple music, etc) to completely stop when opening the app or the sounds from inside the app begin to play.:beetle: What is the observed behavior?
see above
:beetle: What is the expected behavior?
sound plays over anything else playing, ie. mixing with others
:beetle: Please post your code:
:bulb: Does the problem have a test case?
:bulb: **Possible solution**:bulb: Is there a workaround?
:bulb: If the bug is confirmed, would you be willing to create a pull request?
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
If your problem is happening on a device, which device?