-
Notifications
You must be signed in to change notification settings - Fork 853
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File Buffering callback #408
Comments
Maybe show the preloader until you get a duration info? Maybe listen to AudioPlayerState value? |
@pobrejuanito I get what you're saying and that's what I do but while it's playing and starts buffering again, the audio suddenly stops playing, however the audio player state is still PLAYING. In such a scenario, I want to display a preloaded to indicate to the user the audio is buffering. |
just_audio plugin has two more player states: "connecting" and "buffering". "buffering" state is very valuable. Playback can stop at any moment if a player cannot load the file, but there is no way to alert the user if a player remains in the "playing" state. It is also very useful at the beginning of the playback: "paused -> buffering -> playing" sequence leads to a better UX. |
@volgin ,that's another plugin right? |
@volgin , Do you think it's better than Audioplayers plugin? |
At quick glance, it appears an equivalent of "buffering" implementation in audioplayers compared to just_audio is implementing seekCompleteHandler and indicate buffering is done inside handler? I'm going to try that when I get a chance. |
Closing in favor of #361 |
How do I get a callback or listen to audio file buffering while playing a remote file such that I can customize and show the user a preloader if it's buffering more while playing already
The text was updated successfully, but these errors were encountered: