Mute audio on ExoPlayer
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 volume ? Exoplayer 2.x.x Get the current volume: int currentvolume = player.getVolume(); Mute: player.setVolume(0f); Unmute: player.setVolume(currentVolume); Exoplayer 1.x.x I found two ways to achieve it by editing DemoPlayer from ExoPlayer. Good one : Basicly, you need to get the audioTrackRenderer which is a ExoPlayerComponent and send message to it. So : Add audioRenderer member and set it in onRenderers : // Complete