-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Add a fragment request timeout #3422
Add a fragment request timeout #3422
Conversation
Does it raise an error when the request fails due to timeout? |
ebd003c
to
6e9c98e
Compare
@bbert It calls the onloadend handler, so it's treated as if it failed normally, like a non-200 code, including the retries. There's no specific error to indicate that it failed because of a timeout. |
Cheers for the review @dsilhavy, I fixed the issues and rebased it just now. |
OK great, I tried, that works fine. Thanks for this PR |
* Created test for fragment request timeout set * Exposed setting fragment timeouts on media player interface * Added logging to report HTTPLoader ontimeout callback * Update to use settings instead of functions on MediaPlayer * Add fragmentRequestTimeout JSDoc and type definition, and default to 0 when NaN. Co-authored-by: magnuswoody <magnus.woodgate@bbc.co.uk>
Add the setting fragmentRequestTimeout for making fragment requests fail after the timeout.