Skip to content

Commit

Permalink
fix: fix control not showing up at very first touch
Browse files Browse the repository at this point in the history
  • Loading branch information
wood1986 committed Aug 24, 2022
1 parent 622f9d3 commit a79c30e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,6 @@ private void initializePlayerControl() {

// 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
Expand Down Expand Up @@ -448,6 +447,7 @@ private void addPlayerControl() {
removeViewAt(indexOfPC);
}
addView(playerControlView, 1, layoutParams);
reLayout(playerControlView);
}

/**
Expand Down Expand Up @@ -595,7 +595,7 @@ private void initializePlayerCore(ReactExoplayerView self) {
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();
Expand Down

0 comments on commit a79c30e

Please sign in to comment.