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
In ExoPlayer 2.x.x:
get the current volume:
int currentVolume = player..getAudioComponent().getVolume();
mute:
player.getAudioComponent().setVolume(0f);
unmute:
player.getAudioComponent().setVolume(currentVolume);