mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-07 21:48:14 -08:00
fix: Add slightly bigger delay for slower devices.
This commit is contained in:
parent
8b9bc04380
commit
fa61ce2e40
1 changed files with 1 additions and 1 deletions
|
|
@ -264,7 +264,7 @@ class MediaControlsWrapper extends BaseAudioHandler implements VideoPlayerContro
|
||||||
final totalDuration = _player?.lastState.duration;
|
final totalDuration = _player?.lastState.duration;
|
||||||
|
|
||||||
// //Small delay so we don't post right after playback/progress update
|
// //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);
|
await playbackModel.playbackStopped(position ?? Duration.zero, totalDuration, ref);
|
||||||
ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(position: Duration.zero));
|
ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(position: Duration.zero));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue