fix(player): allow pausing while loading

Fixes https://github.com/libre-tube/LibreTube/issues/4784, the player should only pause when it has no buffer to play, not when it is loading, as it always loads, until the allocated buffer is full.
This commit is contained in:
FineFindus 2023-09-17 11:32:21 +02:00
parent 88a52db4d8
commit 42d081f04e
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B

View File

@ -13,7 +13,7 @@ fun Player.togglePlayPauseState() {
seekTo(0)
}
!isPlaying && !isLoading -> play()
!isPlaying && totalBufferedDuration > 0 -> play()
else -> pause()
}
}