I\'m using Google new MediaPlayer named ExoPlayer and cannot find a way to mute the sound
Is there an easy way to mute audio track on Google ExoPlayer ? Or changing
The new way to mute and unmute volume as of version 2.3.1 can be done as follows:
int currentvolume = player.getVolume();
make sure to call the line above after starting the player otherwise you will get a nullpointerexception
to mute volume:
player.setVolume(0f);
to unmute volume:
player.setVolume(currentVolume);