Fix for issue #2153

This commit is contained in:
Dan Levy 2021-05-18 09:20:32 -06:00 committed by GitHub
parent 1eb11ce7b7
commit adf895dcdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {