Convenience getter for the current position
This commit is contained in:
parent
d72d74db84
commit
a5a8cd2a09
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue