Skip to content

[Proposal][video_player][web] Provide a way to reliably check whether or not a video has buffered enough to play video consistently #94630

@NicolasDionB

Description

@NicolasDionB

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.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listassigned for triageissue is assigned to a domain expert for further triagec: proposalA detailed proposal for a change to Flutterp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.platform-webWeb applications specificallyr: fixedIssue is closed as already fixed in a newer version

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions