fix: Incorrect progress updating for native player

This commit is contained in:
PartyDonut 2025-10-26 18:07:26 +01:00
parent fa61ce2e40
commit a3ccb6009c
6 changed files with 57 additions and 32 deletions

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: 2));
await Future.delayed(const Duration(seconds: 1));
await playbackModel.playbackStopped(position ?? Duration.zero, totalDuration, ref);
ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(position: Duration.zero));