improve end of voice broadcast check

This commit is contained in:
Florian Renaud 2022-11-07 16:05:06 +01:00
parent 4e53366727
commit c1dd66003a
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ class VoiceBroadcastPlayerImpl @Inject constructor(
}
}
State.IDLE -> {
if (playbackTime == null || percentage == null || playbackTime == playlist.duration) {
if (playbackTime == null || percentage == null || (playlist.duration - playbackTime) < 50) {
playbackTracker.stopPlayback(id)
} else {
playbackTracker.updatePausedAtPlaybackTime(id, playbackTime, percentage)