Skip to content

Commit

Permalink
fix: abort all loaders on earlyabort (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Nov 17, 2020
1 parent c9b195b commit e7cb63a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE: 16,

BUFFER_LOW_WATER_LINE_RATE: 1,
Expand Down
2 changes: 2 additions & 0 deletions src/master-playlist-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ export class MasterPlaylistController extends videojs.EventTarget {
return;
}

this.delegateLoaders_('all', ['abort']);

this.blacklistCurrentPlaylist({
message: 'Aborted early because there isn\'t enough bandwidth to complete the ' +
'request without rebuffering.'
Expand Down

0 comments on commit e7cb63a

Please sign in to comment.