onAudioPositionChanged property

Stream<Duration> get onAudioPositionChanged

Stream of changes on audio position.

Roughly fires every 200 milliseconds. Will continuously update the position of the playback if the status is AudioPlayerState.PLAYING.

You can use it on a progress bar, for instance.

Implementation

Stream<Duration> get onAudioPositionChanged => _positionController.stream;