Convenience getter for the current position
This commit is contained in:
parent
d72d74db84
commit
a5a8cd2a09
1 changed files with 3 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue