Don't update position while buffering
This commit is contained in:
parent
f5b3ce92bc
commit
a8263ff221
|
@ -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) *
|
||||
|
|
Loading…
Reference in New Issue