fix: fixes where Android's muted prop behavior differs from iOS (#3339)

This commit is contained in:
YangJH 2023-11-09 03:39:04 +09:00 committed by GitHub
parent 7f49b56027
commit 8fbdc28a73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -646,6 +646,7 @@ public class ReactExoplayerView extends FrameLayout implements
.setMediaSourceFactory(mediaSourceFactory)
.build();
player.addListener(self);
player.setVolume(muted ? 0.f : audioVolume * 1);
exoPlayerView.setPlayer(player);
if (adsLoader != null) {
adsLoader.setPlayer(player);