mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 08:20:32 +05:30
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:
parent
88a52db4d8
commit
42d081f04e
@ -13,7 +13,7 @@ fun Player.togglePlayPauseState() {
|
||||
seekTo(0)
|
||||
}
|
||||
|
||||
!isPlaying && !isLoading -> play()
|
||||
!isPlaying && totalBufferedDuration > 0 -> play()
|
||||
else -> pause()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user