You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made sure that the issue I am raising doesn't already exist
Sometimes, when I press to play the audio, it has a big delay to start to play. The PlayerState it's playing right after press play, the file it's already downloaded.
Okay seems a very long delay, but as I see the source is a video, so I expect this is quite large. We would need to implement #361 to better tackle this.
…g the source (#1469)
# Description
Add a callback when the player has prepared its source, which is tangled
to the asynchronous `setSource` method, to improve experience, when
player should actually play and not wait for the player to prepare /
load the source.
## Related Issues
Closes#1118Closes#1384Closes#1359#1191flutter/flutter#126209
Checklist
Sometimes, when I press to play the audio, it has a big delay to start to play. The
PlayerState
it'splaying
right after press play, the file it's already downloaded.Current bug behaviour
audioPlayer.onPlayerStateChanged
dispatchisReady
state.audioPlayer.resume()
method.audioPlayer.onPlayerStateChanged
dispatchplaying
state.Expected behaviour
audioPlayer.onPlayerStateChanged
dispatchisReady
state.audioPlayer.resume()
method.audioPlayer.onPlayerStateChanged
dispatchplaying
state.Reproducing
bug.mp4
Environment information
Platform 1: Ubuntu 22.10, Ubuntu 22.04 LTS, Ubuntu 18.04 LTS
Platforms tested without any issue: Windows 10
The text was updated successfully, but these errors were encountered: