Convenience getter for the current position

This commit is contained in:
Ryan Heise 2020-05-25 12:02:35 +10:00
parent d72d74db84
commit a5a8cd2a09
1 changed files with 3 additions and 0 deletions

View File

@ -203,6 +203,9 @@ class AudioPlayer {
/// Whether the player is buffering. /// Whether the player is buffering.
bool get buffering => _audioPlaybackEvent.buffering; bool get buffering => _audioPlaybackEvent.buffering;
/// The current position of the player.
Duration get position => _audioPlaybackEvent.position;
IcyMetadata get icyMetadata => _audioPlaybackEvent.icyMetadata; IcyMetadata get icyMetadata => _audioPlaybackEvent.icyMetadata;
/// A stream of buffering state changes. /// A stream of buffering state changes.