Repository navigation
Error Handling controller and LoadPolicies - #5241
Merged
robwalch merged 11 commits intoFeb 27, 2023
Merged
Conversation
robwalch
force-pushed
the
feature/error-controller-pathway-penalty-network-policy
branch
from
February 18, 2023 20:18
e49ff5c to
1116105
Compare
robwalch
force-pushed
the
feature/error-controller-pathway-penalty-network-policy
branch
4 times, most recently
from
February 22, 2023 01:08
8d1b80e to
bba791b
Compare
robwalch
marked this pull request as ready for review
February 22, 2023 01:09
Add Error Handling Integration Tests Handle missed probe transmux probe with with FRAG_PARSING_ERROR Handle encrypted init segment and subtitle decryption failure with FRAG_DECRYPT_ERROR Remove delay when retrying after timeout Trigger FRAG_LOADING after request is made ERROR event data type must include an error property Add stats to network loader error callbacks to allow error handling to use request timing Remove use of console.warn from mp4-tools Add missing TypeScript type exports
…t.errorRetry.maxNumRetry (6) times Fixes #5011
…t.errorRetry.maxNumRetry (6) times 2/2 Fixes #5011
Warn on currentFrag context reference change and use currentFrag to maintain correct stats ref Fixes #5230
robwalch
force-pushed
the
feature/error-controller-pathway-penalty-network-policy
branch
from
February 22, 2023 03:02
bba791b to
024db11
Compare
This was referenced Feb 22, 2023
robwalch
commented
Feb 23, 2023
robwalch
commented
Feb 24, 2023
robwalch
force-pushed
the
feature/error-controller-pathway-penalty-network-policy
branch
from
February 24, 2023 21:39
33224cf to
d23e53a
Compare
Cleanup frag stats handoff
…izes retry on parse errors)
robwalch
force-pushed
the
feature/error-controller-pathway-penalty-network-policy
branch
from
February 25, 2023 00:14
d23e53a to
90984f9
Compare
…ch when no alternate is available
robwalch
force-pushed
the
feature/error-controller-pathway-penalty-network-policy
branch
from
February 25, 2023 03:32
e629562 to
981875c
Compare
robwalch
deleted the
feature/error-controller-pathway-penalty-network-policy
branch
February 27, 2023 19:31
akashchamp
pushed a commit
to akashchamp/hls.js
that referenced
this pull request
Sep 25, 2026
* Implement ErrorController … Add Error Handling Integration Tests Handle missed probe transmux probe with with FRAG_PARSING_ERROR Handle encrypted init segment and subtitle decryption failure with FRAG_DECRYPT_ERROR Remove delay when retrying after timeout Trigger FRAG_LOADING after request is made ERROR event data type must include an error property Add stats to network loader error callbacks to allow error handling to use request timing Remove use of console.warn from mp4-tools Add missing TypeScript type exports * Remove console.assert statements Resolves video-dev#5218 Closes video-dev#5221 * Remove unused frag buffered monitor * Add Load Policies and deprecate frag/level/manifest timeout and retry config options * Switch on FRAG_PARSING_ERROR or continue trying fragLoadPolicy.default.errorRetry.maxNumRetry (6) times Fixes video-dev#5011 * Switch on FRAG_PARSING_ERROR or continue trying fragLoadPolicy.default.errorRetry.maxNumRetry (6) times 2/2 Fixes video-dev#5011 * Do not reload level after calling stopLoad() and startLoad() Warn on currentFrag context reference change and use currentFrag to maintain correct stats ref Fixes video-dev#5230 * Implement ErrorActions and Pathway Switching * Fix part timeout handling Cleanup frag stats handoff * Update retry rules to require http status or timeout error (deprioritizes retry on parse errors) * Retry audio and subtitle playlist loading after failure on level switch when no alternate is available
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR will...
Implement an ErrorController to handle error events before and after other controllers. On ERROR, ErrorController is responsible for level switching, falling back to redundant streams, and escalating errors to
fatalwhen there is no action to take.Why is this Pull Request needed?
Improve error handling and consolidate error handling logic so that it is easier to follow, and so that it can be replaced with a custom controller.
Completes Content Steering by implementing Pathway penalty and switching on error.
Are there any points in the code the reviewer needs to double check?
Resolves issues:
stopLoad()and then restarting withstartLoad()causes a transition to the lowest level #5230Checklist