Skip to content

Commit 5b3c520

Browse files
committed
feat: automatically display player controls when 'play automatically' is disabled
1 parent 13a6af4 commit 5b3c520

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

app/src/main/java/com/github/libretube/ui/views/CustomExoPlayerView.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1020,6 +1020,11 @@ abstract class CustomExoPlayerView(
10201020
keepScreenOn = player.isPlaying == true
10211021
onPlayerEvent(player, events)
10221022
}
1023+
1024+
if (events.contains(Player.EVENT_RENDERED_FIRST_FRAME)) {
1025+
// if the video is not starting automatically, show the controller
1026+
if (!PlayerHelper.playAutomatically) showControllerPermanently()
1027+
}
10231028
}
10241029

10251030
open fun minimizeOrExitPlayer() = Unit

0 commit comments

Comments
 (0)