Skip to content

Commit

Permalink
fix: adjust controller status based on the controls prop
Browse files Browse the repository at this point in the history
  • Loading branch information
seyedmostafahasani committed Jun 21, 2024
1 parent 9e20777 commit b44b3ba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1267,7 +1267,7 @@ public void onEvents(@NonNull Player player, Player.Events events) {
setSelectedTrack(C.TRACK_TYPE_VIDEO, videoTrackType, videoTrackValue);
}
// Setting the visibility for the playerControlView
if (playerControlView != null) {
if (playerControlView != null && controls) {
exoPlayerView.setUseController(true);
}
setKeepScreenOn(preventsDisplaySleepDuringVideoPlayback);
Expand Down

0 comments on commit b44b3ba

Please sign in to comment.