Merge pull request #3997 from Bnyro/master

Fix watch positions while playing a playlist or using autoplay
This commit is contained in:
Bnyro 2023-06-12 20:11:08 +02:00 committed by GitHub
commit 2aec2c45b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -642,7 +642,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
// save the watch position if video isn't finished and option enabled
private fun saveWatchPosition() {
if (!this::exoPlayer.isInitialized || !PlayerHelper.watchPositionsVideo
if (!this::exoPlayer.isInitialized || !PlayerHelper.watchPositionsVideo || transitioning
|| exoPlayer.duration == C.TIME_UNSET || exoPlayer.currentPosition in listOf(
0L,
C.TIME_UNSET