fix(media-controls): prevent stale state overwrites

This commit is contained in:
edde746
2026-01-02 01:11:50 +01:00
parent c53018b53b
commit ce6686e634
+2 -1
View File
@@ -78,7 +78,8 @@ class MediaControlsManager {
final params = _PlaybackStateParams(isPlaying: isPlaying, position: position, speed: speed);
if (force) {
// Bypass throttling for forced updates
// Cancel any pending throttled update to prevent stale state from overwriting
_throttledUpdate.cancel();
await _doUpdatePlaybackState(params);
} else {
// Use throttled update