-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat: Temporarily disable the active variant from NETWORK HTTP_ERROR #4189
feat: Temporarily disable the active variant from NETWORK HTTP_ERROR #4189
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). For more information, open the CLA check for this pull request. |
CLA signed |
Please execute |
@avelad I did it and it worked ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general, I see it quite well.
Missed adding test to cover the new functionality that is being added.
Thanks for working on this feature.
0b42552
to
fdcc2ae
Compare
fdcc2ae
to
2c9e675
Compare
Please check the errors, for example: https://github.com/shaka-project/shaka-player/runs/6288317308?check_suite_focus=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I think it would be necessary to add a test with disabledUntilTime != 0
Note: related to #2541 |
If we put a value other than 0, it would really be doing what is requested in #2541, @joeyparrish, what do you think? |
e62b8c7
to
b53535f
Compare
ab17dfe
to
3acab8e
Compare
Introduced in shaka-project#4189, as a side-effect of restricting tracks when a network failure occurs. We should not trigger such restrictions when the browser is known to be offline. Closes shaka-project#4408
Description
When a
NETWORK HTTP_ERROR
is thrown we'll temporary disable the problematic variant duringshaka.extern.Restrictions.maxDisabledTime
seconds ( default will be 30 seconds )Relates
#4121
BEGIN_COMMIT_OVERRIDE
feat: Temporarily disable the active variant from NETWORK HTTP_ERROR (#4189)
When a
NETWORK HTTP_ERROR
is thrown, we'll temporarily disable the variant forshaka.extern.Restrictions.maxDisabledTime
seconds (default will be 30 seconds).Closes #4121
Closes #1542
Closes #2541
END_COMMIT_OVERRIDE