react-native-sound icon indicating copy to clipboard operation
react-native-sound copied to clipboard

iOS not able to Loop, setNumberOfLoops not working.

Open Akash-T2S opened this issue 5 years ago • 1 comments

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:

Akash-T2S avatar Feb 26 '20 10:02 Akash-T2S

I have the same issue!

jonasalexanderd avatar Aug 26 '22 16:08 jonasalexanderd