Fix for issue #2153
This commit is contained in:
parent
1eb11ce7b7
commit
adf895dcdf
@ -1219,13 +1219,11 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
|
||||
public void setMutedModifier(boolean muted) {
|
||||
this.muted = muted;
|
||||
audioVolume = muted ? 0.f : 1.f;
|
||||
if (player != null) {
|
||||
player.setVolume(audioVolume);
|
||||
player.setVolume(muted ? 0.f : audioVolume);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void setVolumeModifier(float volume) {
|
||||
audioVolume = volume;
|
||||
if (player != null) {
|
||||
|
Loading…
Reference in New Issue
Block a user