hls.js 1.5.10-0.canary.10320 → 1.5.10-0.canary.10321
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 +7 -8
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +7 -8
- 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 +7 -8
- 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 +7 -8
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/utils/xhr-loader.ts +5 -5
package/dist/hls.light.js
CHANGED
@@ -580,7 +580,7 @@
|
|
580
580
|
// Some browsers don't allow to use bind on console object anyway
|
581
581
|
// fallback to default if needed
|
582
582
|
try {
|
583
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.10-0.canary.
|
583
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.10-0.canary.10321");
|
584
584
|
} catch (e) {
|
585
585
|
/* log fn threw an exception. All logger methods are no-ops. */
|
586
586
|
return createLogger();
|
@@ -9271,8 +9271,6 @@
|
|
9271
9271
|
this.config = null;
|
9272
9272
|
this.context = null;
|
9273
9273
|
this.xhrSetup = null;
|
9274
|
-
// @ts-ignore
|
9275
|
-
this.stats = null;
|
9276
9274
|
};
|
9277
9275
|
_proto.abortInternal = function abortInternal() {
|
9278
9276
|
var loader = this.loader;
|
@@ -9319,13 +9317,14 @@
|
|
9319
9317
|
var xhrSetup = this.xhrSetup;
|
9320
9318
|
if (xhrSetup) {
|
9321
9319
|
Promise.resolve().then(function () {
|
9322
|
-
if (_this.stats.aborted) return;
|
9320
|
+
if (_this.loader !== xhr || _this.stats.aborted) return;
|
9323
9321
|
return xhrSetup(xhr, context.url);
|
9324
9322
|
}).catch(function (error) {
|
9323
|
+
if (_this.loader !== xhr || _this.stats.aborted) return;
|
9325
9324
|
xhr.open('GET', context.url, true);
|
9326
9325
|
return xhrSetup(xhr, context.url);
|
9327
9326
|
}).then(function () {
|
9328
|
-
if (_this.stats.aborted) return;
|
9327
|
+
if (_this.loader !== xhr || _this.stats.aborted) return;
|
9329
9328
|
_this.openAndSendXhr(xhr, context, config);
|
9330
9329
|
}).catch(function (error) {
|
9331
9330
|
// IE11 throws an exception on xhr.open if attempting to access an HTTP resource over HTTPS
|
@@ -9442,8 +9441,8 @@
|
|
9442
9441
|
}
|
9443
9442
|
};
|
9444
9443
|
_proto.loadtimeout = function loadtimeout() {
|
9445
|
-
|
9446
|
-
var retryConfig =
|
9444
|
+
if (!this.config) return;
|
9445
|
+
var retryConfig = this.config.loadPolicy.timeoutRetry;
|
9447
9446
|
var retryCount = this.stats.retry;
|
9448
9447
|
if (shouldRetry(retryConfig, retryCount, true)) {
|
9449
9448
|
this.retry(retryConfig);
|
@@ -21694,7 +21693,7 @@
|
|
21694
21693
|
* Get the video-dev/hls.js package version.
|
21695
21694
|
*/
|
21696
21695
|
function get() {
|
21697
|
-
return "1.5.10-0.canary.
|
21696
|
+
return "1.5.10-0.canary.10321";
|
21698
21697
|
}
|
21699
21698
|
}, {
|
21700
21699
|
key: "Events",
|