mirror of
https://github.com/gabehf/Fladder.git
synced 2026-03-08 15:08:18 -07:00
fix: Update playback position when paused (#344)
Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
parent
d1d7cbd74d
commit
aad081abae
2 changed files with 38 additions and 9 deletions
|
|
@ -296,6 +296,9 @@ class MediaControlsWrapper extends BaseAudioHandler {
|
|||
@override
|
||||
Future<void> seek(Duration position) {
|
||||
_player?.seek(position);
|
||||
if (_player?.lastState.playing == false) {
|
||||
ref.read(mediaPlaybackProvider.notifier).update((state) => state.copyWith(position: position));
|
||||
}
|
||||
return super.seek(position);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue