Skip to content

Commit

Permalink
Merge pull request #2371 from justsml/patch-1
Browse files Browse the repository at this point in the history
Fix volume reset issue in exoPlayer
  • Loading branch information
hueniverse authored May 21, 2022
2 parents e0420d6 + adf895d commit 046fb22
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1241,13 +1241,11 @@ public void setPausedModifier(boolean paused) {

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) {
Expand Down

0 comments on commit 046fb22

Please sign in to comment.