zmxv / react-native-sound

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

setVolume is not working. #683

Open ajay2c9 opened 4 years ago

ajay2c9 commented 4 years ago

HI, I'm using react-native-sound module in my app. while updating the volume by sing code setVolume, the p[layer volume is not adjusting. my code is like this. var musicPlayer = new Sound(mPath, error => { if (error) { console.log('failed to load the sound', error); return; } }); //For updating the volume. musicPlayer.setVolume(mVolume);

// volume range is 0 to 1.0

While adjusting the volume the range of volume is not adjusting for the player. The device volume is high.

Please give suggestions to overcome this issue.

Thank you

punndcoder28 commented 2 years ago

Hi. I faced this issue as well. What version of the module are you using? Is it on android?