hls.js 1.5.14-0.canary.10674 → 1.5.14-0.canary.10676
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.d.mts +1 -1
- package/dist/hls.d.ts +1 -1
- package/dist/hls.js +9 -4
- package/dist/hls.js.d.ts +1 -1
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +9 -4
- 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 +9 -4
- 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 +9 -4
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/config.ts +4 -1
- package/src/controller/stream-controller.ts +4 -0
- package/src/utils/fetch-loader.ts +10 -5
package/dist/hls.light.mjs
CHANGED
@@ -440,7 +440,7 @@ function enableLogs(debugConfig, context, id) {
|
|
440
440
|
// Some browsers don't allow to use bind on console object anyway
|
441
441
|
// fallback to default if needed
|
442
442
|
try {
|
443
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.
|
443
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.14-0.canary.10676"}`);
|
444
444
|
} catch (e) {
|
445
445
|
/* log fn threw an exception. All logger methods are no-ops. */
|
446
446
|
return createLogger();
|
@@ -10198,7 +10198,7 @@ function changeTypeSupported() {
|
|
10198
10198
|
return typeof (sourceBuffer == null ? void 0 : (_sourceBuffer$prototy = sourceBuffer.prototype) == null ? void 0 : _sourceBuffer$prototy.changeType) === 'function';
|
10199
10199
|
}
|
10200
10200
|
|
10201
|
-
const version = "1.5.14-0.canary.
|
10201
|
+
const version = "1.5.14-0.canary.10676";
|
10202
10202
|
|
10203
10203
|
// ensure the worker ends up in the bundle
|
10204
10204
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -16419,6 +16419,10 @@ class StreamController extends BaseStreamController {
|
|
16419
16419
|
return;
|
16420
16420
|
}
|
16421
16421
|
const currentLevel = levels[frag.level];
|
16422
|
+
if (!currentLevel) {
|
16423
|
+
this.warn(`Level ${frag.level} not found on progress`);
|
16424
|
+
return;
|
16425
|
+
}
|
16422
16426
|
const details = currentLevel.details;
|
16423
16427
|
if (!details) {
|
16424
16428
|
this.warn(`Dropping fragment ${frag.sn} of level ${frag.level} after level details were reset`);
|
@@ -20771,7 +20775,7 @@ function fetchSupported() {
|
|
20771
20775
|
}
|
20772
20776
|
const BYTERANGE = /(\d+)-(\d+)\/(\d+)/;
|
20773
20777
|
class FetchLoader {
|
20774
|
-
constructor(config
|
20778
|
+
constructor(config) {
|
20775
20779
|
this.fetchSetup = void 0;
|
20776
20780
|
this.requestTimeout = void 0;
|
20777
20781
|
this.request = null;
|
@@ -20830,7 +20834,8 @@ class FetchLoader {
|
|
20830
20834
|
this.abortInternal();
|
20831
20835
|
callbacks.onTimeout(stats, context, this.response);
|
20832
20836
|
}, config.timeout);
|
20833
|
-
|
20837
|
+
const fetchPromise = isPromise(this.request) ? this.request.then(self.fetch) : self.fetch(this.request);
|
20838
|
+
fetchPromise.then(response => {
|
20834
20839
|
this.response = this.loader = response;
|
20835
20840
|
const first = Math.max(self.performance.now(), stats.loading.start);
|
20836
20841
|
self.clearTimeout(this.requestTimeout);
|