Don't update position while buffering

This commit is contained in:
Ryan Heise 2020-02-06 01:15:47 +11:00
parent f5b3ce92bc
commit a8263ff221
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ class AudioPlaybackEvent {
});
/// The current position of the player.
Duration get position => state == AudioPlaybackState.playing
Duration get position => state == AudioPlaybackState.playing && !buffering
? updatePosition +
(Duration(milliseconds: DateTime.now().millisecondsSinceEpoch) -
updateTime) *