fix: fixes where Android's muted prop behavior differs from iOS (#3339)
This commit is contained in:
parent
7f49b56027
commit
8fbdc28a73
@ -646,6 +646,7 @@ public class ReactExoplayerView extends FrameLayout implements
|
|||||||
.setMediaSourceFactory(mediaSourceFactory)
|
.setMediaSourceFactory(mediaSourceFactory)
|
||||||
.build();
|
.build();
|
||||||
player.addListener(self);
|
player.addListener(self);
|
||||||
|
player.setVolume(muted ? 0.f : audioVolume * 1);
|
||||||
exoPlayerView.setPlayer(player);
|
exoPlayerView.setPlayer(player);
|
||||||
if (adsLoader != null) {
|
if (adsLoader != null) {
|
||||||
adsLoader.setPlayer(player);
|
adsLoader.setPlayer(player);
|
||||||
|
Loading…
Reference in New Issue
Block a user