react-native-sound
react-native-sound copied to clipboard
iOS not able to Loop, setNumberOfLoops not working.
iOS not able to Loop, setNumberOfLoops not working.
:beetle: What have you tried?
:beetle: Please post your code:
sound = new Sound('order_beep.mp3', Sound.MAIN_BUNDLE, (error) => {
if (error) {
console.log('error', error);
return;
}
// Play the sound with an onEnd callback
sound.setNumberOfLoops(-1);
sound.play();
});
:bulb: Possible solution
Is your issue with...
- [x] iOS
- [ ] Android
- [ ] Windows
Are you using...
- [x] React Native CLI (e.g.
react-native run-android
) - [ ] Expo
- [ ] Other: (please specify)
Which versions are you using?
- React Native Sound: 0.11.0
- React Native: 0.59.9
- iOS:
- Android:
- Windows:
Does the problem occur on...
- [x] Simulator
- [ ] Device
If your problem is happening on a device, which device?
- Device:
I have the same issue!