Open AhmedElwerdany opened 1 year ago
you can use: whoosh.stop(() => { // Note: If you want to play a sound after stopping and rewinding it, // it is important to call play() in a callback. // whoosh.play(); }); you need to stop first audio before playing second audio
:beetle: Description
for example, I have two audios. (audio_1) and (audio_2). I play (audio_1) , then I play (audio_2). but they work with each other. I want the (audio_1) to stop if I played (audio_2), and vice versa
:beetle: What have you tried?
each audio is initiated with "Sound" Class.
:beetle: Please post your code:
:bulb: Possible solution
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?