Skip to content
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

Buffer start and buffer end events #8857

Open
arvinsim opened this issue Sep 6, 2024 · 1 comment
Open

Buffer start and buffer end events #8857

arvinsim opened this issue Sep 6, 2024 · 1 comment
Labels
needs: triage This issue needs to be reviewed

Comments

@arvinsim
Copy link

arvinsim commented Sep 6, 2024

Description

I would like to request the addition of native Video.js events for when a video starts buffering and when it stops buffering.

In our project, we use an analytics tool to track video performance metrics, including when buffering begins and ends. Currently, we approximate these events by emitting a "buffer start" event when the player enters the WAITING state and a "buffer end" event when playback resumes.

The current solution of using the WAITING state to infer buffering start and relying on playback resumption to signal buffering end does not reliably capture all instances of buffering behavior. This can lead to inaccurate analytics data and affect performance metrics reporting.

It would be highly beneficial for Video.js to provide native events specifically for "buffer start" and "buffer end." It would significantly improve the ability to track and analyze video performance in Video.js.

NOTE: There is already a precedent to this issue but progress event is not what is needed.

Reduced test case

NA

Steps to reproduce

NA

Errors

No response

What version of Video.js are you using?

7.20.2

Video.js plugins used.

No response

What browser(s) including version(s) does this occur with?

NA

What OS(es) and version(s) does this occur with?

NA

@arvinsim arvinsim added the needs: triage This issue needs to be reviewed label Sep 6, 2024
Copy link

welcome bot commented Sep 6, 2024

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage This issue needs to be reviewed
Projects
None yet
Development

No branches or pull requests

1 participant