hls.js 1.4.6 → 1.4.7
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 +48 -43
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +5 -2
- 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 +5 -2
- 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 +52 -49
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/controller/base-stream-controller.ts +4 -0
- package/src/controller/subtitle-stream-controller.ts +21 -20
- package/src/controller/timeline-controller.ts +23 -24
- package/src/utils/webvtt-parser.ts +8 -6
- package/src/utils/xhr-loader.ts +1 -0
package/dist/hls.light.mjs
CHANGED
|
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, id) {
|
|
|
402
402
|
// Some browsers don't allow to use bind on console object anyway
|
|
403
403
|
// fallback to default if needed
|
|
404
404
|
try {
|
|
405
|
-
exportedLogger.log(`Debug logs enabled for "${id}" in hls.js version ${"1.4.
|
|
405
|
+
exportedLogger.log(`Debug logs enabled for "${id}" in hls.js version ${"1.4.7"}`);
|
|
406
406
|
} catch (e) {
|
|
407
407
|
exportedLogger = fakeLogger;
|
|
408
408
|
}
|
|
@@ -8834,6 +8834,8 @@ class BaseStreamController extends TaskLoop {
|
|
|
8834
8834
|
} else {
|
|
8835
8835
|
logger.warn(`${data.details} reached or exceeded max retry (${retryCount})`);
|
|
8836
8836
|
}
|
|
8837
|
+
} else if ((errorAction == null ? void 0 : errorAction.action) === NetworkErrorAction.SendAlternateToPenaltyBox) {
|
|
8838
|
+
this.state = State.WAITING_LEVEL;
|
|
8837
8839
|
} else {
|
|
8838
8840
|
this.state = State.ERROR;
|
|
8839
8841
|
}
|
|
@@ -17252,6 +17254,7 @@ class XhrLoader {
|
|
|
17252
17254
|
const stats = this.stats;
|
|
17253
17255
|
stats.loading.first = 0;
|
|
17254
17256
|
stats.loaded = 0;
|
|
17257
|
+
stats.aborted = false;
|
|
17255
17258
|
const xhrSetup = this.xhrSetup;
|
|
17256
17259
|
if (xhrSetup) {
|
|
17257
17260
|
Promise.resolve().then(() => {
|
|
@@ -18079,7 +18082,7 @@ class Hls {
|
|
|
18079
18082
|
* Get the video-dev/hls.js package version.
|
|
18080
18083
|
*/
|
|
18081
18084
|
static get version() {
|
|
18082
|
-
return "1.4.
|
|
18085
|
+
return "1.4.7";
|
|
18083
18086
|
}
|
|
18084
18087
|
|
|
18085
18088
|
/**
|