-
Notifications
You must be signed in to change notification settings - Fork 29.3k
Description
Use case
On web, using video_player
, if I start a video and wait for it to be buffered to start playing, it often results as it doesn't have enough data and falls back in buffering mode again. It all depends on the connection speed indeed but this makes playing unpredictable.
Proposal
The latest version of video_player
plugin sets buffering as false
as soon as onCanPlay
is called. To make the behavior more predictable, only the onCanPlayThrough
should set it to false
, as we can be sure that we have enough data to actually play the video, uninterrupted.
Another idea could be to have different status or at least some way of knowing if it is really buffered enough (onCanPlayThrough).
In the end, the important part for us is to be able to differentiate the buffer state and be able to tell if playing the video is actually doable.