Skip to content

Commit

Permalink
Merge pull request #4797 from FineFindus/fix/play-button
Browse files Browse the repository at this point in the history
fix(player): allow pausing while loading
  • Loading branch information
Bnyro authored Sep 17, 2023
2 parents 88a52db + 42d081f commit bd31660
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fun Player.togglePlayPauseState() {
seekTo(0)
}

!isPlaying && !isLoading -> play()
!isPlaying && totalBufferedDuration > 0 -> play()
else -> pause()
}
}

0 comments on commit bd31660

Please sign in to comment.