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

fix: abort all loaders on earlyabort #965

Merged
merged 2 commits into from
Nov 17, 2020
Merged

Conversation

brandonocasey
Copy link
Contributor

@brandonocasey brandonocasey commented Oct 1, 2020

Description

Note that this also effects the current non-experimental abr algorithm

During low bandwidth situations continuing to download any segments over the video/audio segment is ill-advised as we need to get the buffer filled again ASAP. So when we get an early abort we have to abort all segment loaders to make way for the new playlist that is about to load, so that it can have priority.

Fixes #964

@@ -12,7 +12,7 @@ export default {
BUFFER_LOW_WATER_LINE: 0,
MAX_BUFFER_LOW_WATER_LINE: 30,

// TODO: Remove this when useBufferWaterLines is removed
// TODO: Remove this when experimentalBufferBasedABR is removed
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so that we can remove this comments/code when we need to later on.

gkatsev
gkatsev previously approved these changes Oct 15, 2020
@gkatsev
Copy link
Member

gkatsev commented Nov 9, 2020

Is this something that we think is still necessary? Or could just be closed because we're not doing any earlyabort in the new ABR stuff?

src/master-playlist-controller.js Outdated Show resolved Hide resolved
src/master-playlist-controller.js Outdated Show resolved Hide resolved
@gkatsev gkatsev added this to the 2.4 milestone Nov 17, 2020
@brandonocasey brandonocasey merged commit e7cb63a into main Nov 17, 2020
evanfarina pushed a commit to evanfarina/http-streaming that referenced this pull request Nov 26, 2020
@gkatsev gkatsev deleted the fix/early-abort-all branch May 17, 2021 21:43
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.

experimentalBufferBasedABR (and maybe regular ABR too): fixup ABR when no progress events from XHR
3 participants