mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-29 06:28:45 +03:00
Restart the playback time if player completed with less than 250 ms remaining time
This commit is contained in:
parent
b47c8aabcd
commit
23801de992
1 changed files with 2 additions and 1 deletions
|
@ -517,7 +517,8 @@ class VoiceBroadcastPlayerImpl @Inject constructor(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
State.Idle -> {
|
State.Idle -> {
|
||||||
if (playbackTime == null || percentage == null || (playlist.duration - playbackTime) < 50) {
|
// restart the playback time if player completed with less than 250 ms remaining time
|
||||||
|
if (playbackTime == null || percentage == null || (playlist.duration - playbackTime) < 250) {
|
||||||
playbackTracker.stopPlayback(id)
|
playbackTracker.stopPlayback(id)
|
||||||
} else {
|
} else {
|
||||||
playbackTracker.updatePausedAtPlaybackTime(id, playbackTime, percentage)
|
playbackTracker.updatePausedAtPlaybackTime(id, playbackTime, percentage)
|
||||||
|
|
Loading…
Reference in a new issue