Open Rc85 opened 2 years ago
Are there nobody running into this issue or similar issue with not being able to set infinite loop on Android?
Opposite problem for me, setting a finite number and loops infinitely.
let sound = new Sound(sounds.sfx.knock, err => { sound.setNumberOfLoops(5).play((isFinished) => { console.log('finished') }) })
Finally figured it out. Had to load sound like this.
const newOrderAlert = new Sound('new_order2.mp3', Sound.MAIN_BUNDLE, () => {
newOrderAlert.setNumberOfLoops(-1);
});
.wav
file it is ok 😂
:beetle: Description
setNumberOfLoops(-1)
only play 3 times:beetle: What is the observed behavior?
setNumberOfLoops(-1)
only play 3 times:beetle: What is the expected behavior?
Should loop infinitely until
stop()
is called.: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?