fix: fix control not showing up at very first touch
This commit is contained in:
parent
622f9d3f3f
commit
a79c30eaba
@ -370,7 +370,6 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
|
||||
// Setting the player for the playerControlView
|
||||
playerControlView.setPlayer(player);
|
||||
playerControlView.show();
|
||||
playPauseControlContainer = playerControlView.findViewById(R.id.exo_play_pause_container);
|
||||
|
||||
// Invoking onClick event for exoplayerView
|
||||
@ -448,6 +447,7 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
removeViewAt(indexOfPC);
|
||||
}
|
||||
addView(playerControlView, 1, layoutParams);
|
||||
reLayout(playerControlView);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -595,7 +595,7 @@ class ReactExoplayerView extends FrameLayout implements
|
||||
new DefaultRenderersFactory(getContext())
|
||||
.setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF);
|
||||
player = new ExoPlayer.Builder(getContext(), renderersFactory)
|
||||
.setTrackSelector(self.trackSelector)
|
||||
.setTrackSelector(self.trackSelector)
|
||||
.setBandwidthMeter(bandwidthMeter)
|
||||
.setLoadControl(loadControl)
|
||||
.build();
|
||||
|
Loading…
Reference in New Issue
Block a user