isMuted() added
This commit is contained in:
parent
4415888324
commit
cc559dc9ce
|
@ -538,13 +538,11 @@ public abstract class BasePlayer implements
|
||||||
|
|
||||||
public void onMuteUnmuteButtonClicled(){
|
public void onMuteUnmuteButtonClicled(){
|
||||||
if (DEBUG) Log.d(TAG, "onMuteUnmuteButtonClicled() called");
|
if (DEBUG) Log.d(TAG, "onMuteUnmuteButtonClicled() called");
|
||||||
|
simpleExoPlayer.setVolume(isMuted() ? 1 : 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (simpleExoPlayer.getVolume() != 0) {
|
public boolean isMuted(){
|
||||||
simpleExoPlayer.setVolume(0);
|
return simpleExoPlayer.getVolume() == 0;
|
||||||
}
|
|
||||||
else {
|
|
||||||
simpleExoPlayer.setVolume(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*//////////////////////////////////////////////////////////////////////////
|
/*//////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Reference in New Issue