Open arvinsim opened 2 months ago
π 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.
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