-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Trigger an event when a stall is resolved #4273
Comments
Or will the video element 'playing' event be triggered when the stall is resolved? I looked at the code and it doesn't seem like it would. |
@toschlog "waiting" signals when the video element is trying to play but it cannot (this is not just on stalls, but also when loading or seeking). The "canplay" event signals that there is enough buffer for playback to resume. You can also poll the video element |
When considering this feature, see comments in #4028 for implementation details (gap-controller) and concerns related to HTMLMediaElement "waiting" and "canplay" events. |
- Improve stall detection and reporting using "waiting" event timing - Add `config.detectStallWithCurrentTimeMs` with a default of 1250 to configure stall detection when currentTime does not advance while playing without a "waiting" event - Implement STALL_RESOLVED event - fires after "playing", "seeked", or "ended" event following BUFFER_STALLED_ERROR (Resolves #4273) - Add BufferInfo to stall-related errors (BUFFER_STALLED_ERROR, BUFFER_NUDGE_ON_STALL, BUFFER_SEEK_OVER_HOLE) - Add `stalled.start` performance timing to BUFFER_STALLED_ERROR - Add `buffered` time range array to BufferInfo - Only perform BUFFER_NUDGE_ON_STALL when needed (multiple buffered time ranges) - Fix seek on start without play() request (regression in dev)
Is your feature request related to a problem? Please describe.
My player puts up a "Buffering..." message when it gets a BUFFER_STALLED_ERROR. But I have no idea when to stop drawing the error because there's no event when the stall is resolved.
Describe the solution you'd like
In gap-controller.ts in the function poll(), trigger an event right after this.stallReported is set to false. Something like this:
`
I'd be happy to do this myself if that's cool.
Thanks.
Additional context
No response
The text was updated successfully, but these errors were encountered: