From a5a8cd2a09959f55d7516dddc3866bc9b8860a97 Mon Sep 17 00:00:00 2001 From: Ryan Heise Date: Mon, 25 May 2020 12:02:35 +1000 Subject: [PATCH] Convenience getter for the current position --- lib/just_audio.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/just_audio.dart b/lib/just_audio.dart index d43baab..08043f9 100644 --- a/lib/just_audio.dart +++ b/lib/just_audio.dart @@ -203,6 +203,9 @@ class AudioPlayer { /// Whether the player is buffering. bool get buffering => _audioPlaybackEvent.buffering; + /// The current position of the player. + Duration get position => _audioPlaybackEvent.position; + IcyMetadata get icyMetadata => _audioPlaybackEvent.icyMetadata; /// A stream of buffering state changes.