rxlabz / audioplayer

A flutter plugin to play audio files iOS / Android / MacOS / Web ( Swift/Java )

Home Page:https://pub.dartlang.org/packages/audioplayer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buffering state for stream URLs

BeMacized opened this issue · comments

Is there any way to detect that the audio player is buffering audio when requesting it to play from a URL?

As it takes a while for the audio to start playing, I would like to show a buffering animation to the user to indicate that the buffering is indeed taking place.

I would have expected there to be a state for this in the AudioPlayerState enum, but this does not seem to exist.

It seems there is a pull request for this functionality #65 .