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.
- package/dist/hls.js +22 -16
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +19 -15
- package/dist/hls.light.js.map +1 -1
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.min.js.map +1 -1
- package/dist/hls.light.mjs +25 -21
- package/dist/hls.light.mjs.map +1 -1
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +28 -22
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/controller/audio-stream-controller.ts +3 -1
- package/src/controller/buffer-controller.ts +12 -11
- package/src/controller/content-steering-controller.ts +6 -1
- package/src/controller/stream-controller.ts +3 -1
@@ -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 (!
|
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.
|
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') {
|