mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +05:30
feat(player): show endscreen on STATE_ENDED
This commit is contained in:
parent
0e8e6278d4
commit
420497907b
@ -934,16 +934,16 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check if video has ended, next video is available and autoplay is enabled.
|
// check if video has ended, next video is available and autoplay is enabled.
|
||||||
if (
|
if (playbackState == Player.STATE_ENDED) {
|
||||||
playbackState == Player.STATE_ENDED &&
|
if (!isTransitioning && PlayerHelper.autoPlayEnabled) {
|
||||||
!isTransitioning &&
|
isTransitioning = true
|
||||||
PlayerHelper.autoPlayEnabled
|
if (PlayerHelper.autoPlayCountdown) {
|
||||||
) {
|
showAutoPlayCountdown()
|
||||||
isTransitioning = true
|
} else {
|
||||||
if (PlayerHelper.autoPlayCountdown) {
|
playNextVideo()
|
||||||
showAutoPlayCountdown()
|
}
|
||||||
} else {
|
} else {
|
||||||
playNextVideo()
|
binding.player.showController()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user