setVolume method AudioPlayer is not working - Flutter

Viewed 273

The setVolume method of the audio player is not working. For example: When I set the volume value to 0, it should mute the volume, right? but I can still hear the volume despite setting the volume to 0

AudioPlayer audioPlayer = AudioPlayer();

void playMusic() async {
await audioPlayer.setVolume(0); // Not working
audioPlayer.play(url); // I can still hear the volume despite setting the volume value to zero
}
0 Answers
Related