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.js
CHANGED
@@ -609,7 +609,7 @@
|
|
609
609
|
// Some browsers don't allow to use bind on console object anyway
|
610
610
|
// fallback to default if needed
|
611
611
|
try {
|
612
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.10-0.canary.
|
612
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.10-0.canary.10321");
|
613
613
|
} catch (e) {
|
614
614
|
/* log fn threw an exception. All logger methods are no-ops. */
|
615
615
|
return createLogger();
|
@@ -26399,8 +26399,6 @@
|
|
26399
26399
|
this.config = null;
|
26400
26400
|
this.context = null;
|
26401
26401
|
this.xhrSetup = null;
|
26402
|
-
// @ts-ignore
|
26403
|
-
this.stats = null;
|
26404
26402
|
};
|
26405
26403
|
_proto.abortInternal = function abortInternal() {
|
26406
26404
|
var loader = this.loader;
|
@@ -26447,13 +26445,14 @@
|
|
26447
26445
|
var xhrSetup = this.xhrSetup;
|
26448
26446
|
if (xhrSetup) {
|
26449
26447
|
Promise.resolve().then(function () {
|
26450
|
-
if (_this.stats.aborted) return;
|
26448
|
+
if (_this.loader !== xhr || _this.stats.aborted) return;
|
26451
26449
|
return xhrSetup(xhr, context.url);
|
26452
26450
|
}).catch(function (error) {
|
26451
|
+
if (_this.loader !== xhr || _this.stats.aborted) return;
|
26453
26452
|
xhr.open('GET', context.url, true);
|
26454
26453
|
return xhrSetup(xhr, context.url);
|
26455
26454
|
}).then(function () {
|
26456
|
-
if (_this.stats.aborted) return;
|
26455
|
+
if (_this.loader !== xhr || _this.stats.aborted) return;
|
26457
26456
|
_this.openAndSendXhr(xhr, context, config);
|
26458
26457
|
}).catch(function (error) {
|
26459
26458
|
// IE11 throws an exception on xhr.open if attempting to access an HTTP resource over HTTPS
|
@@ -26570,8 +26569,8 @@
|
|
26570
26569
|
}
|
26571
26570
|
};
|
26572
26571
|
_proto.loadtimeout = function loadtimeout() {
|
26573
|
-
|
26574
|
-
var retryConfig =
|
26572
|
+
if (!this.config) return;
|
26573
|
+
var retryConfig = this.config.loadPolicy.timeoutRetry;
|
26575
26574
|
var retryCount = this.stats.retry;
|
26576
26575
|
if (shouldRetry(retryConfig, retryCount, true)) {
|
26577
26576
|
this.retry(retryConfig);
|
@@ -30503,7 +30502,7 @@
|
|
30503
30502
|
* Get the video-dev/hls.js package version.
|
30504
30503
|
*/
|
30505
30504
|
function get() {
|
30506
|
-
return "1.5.10-0.canary.
|
30505
|
+
return "1.5.10-0.canary.10321";
|
30507
30506
|
}
|
30508
30507
|
}, {
|
30509
30508
|
key: "Events",
|