hls.js 1.5.14-0.canary.10672 → 1.5.14-0.canary.10675
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 +5 -4
- package/dist/hls.js.d.ts +1 -1
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +5 -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 +5 -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 +5 -4
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/config.ts +4 -1
- 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.10675"}`);
|
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.10675";
|
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
|
@@ -20771,7 +20771,7 @@ function fetchSupported() {
|
|
20771
20771
|
}
|
20772
20772
|
const BYTERANGE = /(\d+)-(\d+)\/(\d+)/;
|
20773
20773
|
class FetchLoader {
|
20774
|
-
constructor(config
|
20774
|
+
constructor(config) {
|
20775
20775
|
this.fetchSetup = void 0;
|
20776
20776
|
this.requestTimeout = void 0;
|
20777
20777
|
this.request = null;
|
@@ -20830,7 +20830,8 @@ class FetchLoader {
|
|
20830
20830
|
this.abortInternal();
|
20831
20831
|
callbacks.onTimeout(stats, context, this.response);
|
20832
20832
|
}, config.timeout);
|
20833
|
-
|
20833
|
+
const fetchPromise = isPromise(this.request) ? this.request.then(self.fetch) : self.fetch(this.request);
|
20834
|
+
fetchPromise.then(response => {
|
20834
20835
|
this.response = this.loader = response;
|
20835
20836
|
const first = Math.max(self.performance.now(), stats.loading.start);
|
20836
20837
|
self.clearTimeout(this.requestTimeout);
|