Merge pull request #4488 from Bnyro/master

fix: restoring playback positions via notification controls
This commit is contained in:
Bnyro 2023-08-15 13:04:28 +02:00 committed by GitHub
commit 708dba2b34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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