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

Add a fragment request timeout #3422

Merged
merged 5 commits into from
Oct 21, 2020

Conversation

robertbryer
Copy link
Contributor

Add the setting fragmentRequestTimeout for making fragment requests fail after the timeout.

@dsilhavy dsilhavy added this to the 3.2.0 milestone Oct 6, 2020
@dsilhavy dsilhavy self-requested a review October 6, 2020 15:27
@bbert
Copy link
Contributor

bbert commented Oct 8, 2020

Does it raise an error when the request fails due to timeout?

@robertbryer
Copy link
Contributor Author

@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.

@robertbryer
Copy link
Contributor Author

Cheers for the review @dsilhavy, I fixed the issues and rebased it just now.

@bbert
Copy link
Contributor

bbert commented Oct 16, 2020

@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.

OK great, I tried, that works fine. Thanks for this PR

@dsilhavy dsilhavy merged commit 2d147d4 into Dash-Industry-Forum:development Oct 21, 2020
bbert pushed a commit to Orange-OpenSource/dash.js that referenced this pull request Nov 4, 2020
* 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>
@robertbryer robertbryer deleted the fragmentRequestTimeout branch February 2, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants