Skip to content

Commit

Permalink
fix: fixes where Android's muted prop behavior differs from iOS (#3339)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangJonghun authored Nov 8, 2023
1 parent 7f49b56 commit 8fbdc28
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,7 @@ private void initializePlayerCore(ReactExoplayerView self) {
.setMediaSourceFactory(mediaSourceFactory)
.build();
player.addListener(self);
player.setVolume(muted ? 0.f : audioVolume * 1);
exoPlayerView.setPlayer(player);
if (adsLoader != null) {
adsLoader.setPlayer(player);
Expand Down

0 comments on commit 8fbdc28

Please sign in to comment.