Is it possible to change the volume of sound while an audio file is playing in Cordova?
I found this related post, but it is almost 2 years old. Has it been implemented since?
I have tried changing the volume while it is playing using this method.
audio.setVolume(0.75);
I have also tried pausing the audio file, changing the volume and then playing it again.
audio.pause();
audio.setVolume(0.1);
audio.play();
But none of these methods seem to work.
Any ideas?
Aucun commentaire:
Enregistrer un commentaire