zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.78k stars 749 forks source link

iOS not able to Loop, setNumberOfLoops not working. #653

Open Akash-T2S opened 4 years ago

Akash-T2S commented 4 years ago

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...

Are you using...

Which versions are you using?

Does the problem occur on...

If your problem is happening on a device, which device?

jonasalexanderd commented 1 year ago

I have the same issue!