fix: Add slightly bigger delay for slower devices.

This commit is contained in:
PartyDonut 2025-10-23 18:45:42 +02:00
parent 8b9bc04380
commit fa61ce2e40

View file

@ -264,7 +264,7 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro
final totalDuration = _player?.lastState.duration;
// //Small delay so we don't post right after playback/progress update
await Future.delayed(const Duration(seconds: 1));
await Future.delayed(const Duration(seconds: 2));
await playbackModel.playbackStopped(position ?? Duration.zero, totalDuration, ref);
ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(position: Duration.zero));