fix: normalize EOF playback state

close #828
This commit is contained in:
edde746
2026-04-09 05:55:03 +02:00
parent 966b6371f5
commit 8b40e0993f
3 changed files with 32 additions and 11 deletions
+2 -2
View File
@@ -67,12 +67,12 @@ class PlaybackProgressTracker {
}
// Send initial progress immediately (don't wait for first timer tick)
if (player.state.playing) {
if (player.state.isActive) {
_sendProgress('playing');
}
_progressTimer = Timer.periodic(updateInterval, (timer) {
if (player.state.playing) {
if (player.state.isActive) {
_pausedTickCounter = 0;
// Skip ticks when backing off after consecutive failures to avoid
// flooding the network with doomed requests during an outage.