fix: restoring playback positions via notification controls

This commit is contained in:
Bnyro 2023-08-15 13:05:02 +02:00
parent 1c84cd744c
commit ac5fb5fbb4

View File

@ -813,16 +813,15 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
saveWatchPosition()
// save the id of the next stream as videoId and load the next video
if (nextVideoId != null) {
if (nextVideoId == null) return
isTransitioning = true
videoId = nextVideoId
// play the next video
// start to play the next video
playVideo()
// close comment bottom-sheet for next video
// close comment bottom sheet for next video
commentsViewModel.commentsSheetDismiss?.invoke()
}
}
private fun prepareExoPlayerView() {
binding.player.apply {