hls.js 1.6.6-0.canary.11355 → 1.6.6-0.canary.11356

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  import { ErrorActionFlags, NetworkErrorAction } from './error-controller';
2
+ import { ErrorDetails } from '../errors';
2
3
  import { Events } from '../events';
3
4
  import { Level } from '../types/level';
4
5
  import {
@@ -216,7 +217,11 @@ export default class ContentSteeringController
216
217
  this.updatePathwayPriority(pathwayPriority);
217
218
  errorAction.resolved = this.pathwayId !== errorPathway;
218
219
  }
219
- if (!errorAction.resolved) {
220
+ if (data.details === ErrorDetails.BUFFER_APPEND_ERROR && !data.fatal) {
221
+ // Error will become fatal in buffer-controller when reaching `appendErrorMaxRetry`
222
+ // Stream-controllers are expected to reduce buffer length even if this is not deemed a QuotaExceededError
223
+ errorAction.resolved = true;
224
+ } else if (!errorAction.resolved) {
220
225
  this.warn(
221
226
  `Could not resolve ${data.details} ("${
222
227
  data.error.message
@@ -1053,7 +1053,9 @@ export default class StreamController
1053
1053
  if (data.parent !== 'main') {
1054
1054
  return;
1055
1055
  }
1056
- this.resetLoadingState();
1056
+ if (this.reduceLengthAndFlushBuffer(data)) {
1057
+ this.resetLoadingState();
1058
+ }
1057
1059
  break;
1058
1060
  case ErrorDetails.BUFFER_FULL_ERROR:
1059
1061
  if (data.parent !== 'main') {