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.mjs
CHANGED
@@ -501,7 +501,7 @@ function enableLogs(debugConfig, context, id) {
|
|
501
501
|
// Some browsers don't allow to use bind on console object anyway
|
502
502
|
// fallback to default if needed
|
503
503
|
try {
|
504
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.10-0.canary.
|
504
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.10-0.canary.10321"}`);
|
505
505
|
} catch (e) {
|
506
506
|
/* log fn threw an exception. All logger methods are no-ops. */
|
507
507
|
return createLogger();
|
@@ -25765,8 +25765,6 @@ class XhrLoader {
|
|
25765
25765
|
this.config = null;
|
25766
25766
|
this.context = null;
|
25767
25767
|
this.xhrSetup = null;
|
25768
|
-
// @ts-ignore
|
25769
|
-
this.stats = null;
|
25770
25768
|
}
|
25771
25769
|
abortInternal() {
|
25772
25770
|
const loader = this.loader;
|
@@ -25814,13 +25812,14 @@ class XhrLoader {
|
|
25814
25812
|
const xhrSetup = this.xhrSetup;
|
25815
25813
|
if (xhrSetup) {
|
25816
25814
|
Promise.resolve().then(() => {
|
25817
|
-
if (this.stats.aborted) return;
|
25815
|
+
if (this.loader !== xhr || this.stats.aborted) return;
|
25818
25816
|
return xhrSetup(xhr, context.url);
|
25819
25817
|
}).catch(error => {
|
25818
|
+
if (this.loader !== xhr || this.stats.aborted) return;
|
25820
25819
|
xhr.open('GET', context.url, true);
|
25821
25820
|
return xhrSetup(xhr, context.url);
|
25822
25821
|
}).then(() => {
|
25823
|
-
if (this.stats.aborted) return;
|
25822
|
+
if (this.loader !== xhr || this.stats.aborted) return;
|
25824
25823
|
this.openAndSendXhr(xhr, context, config);
|
25825
25824
|
}).catch(error => {
|
25826
25825
|
// IE11 throws an exception on xhr.open if attempting to access an HTTP resource over HTTPS
|
@@ -25940,8 +25939,8 @@ class XhrLoader {
|
|
25940
25939
|
}
|
25941
25940
|
}
|
25942
25941
|
loadtimeout() {
|
25943
|
-
|
25944
|
-
const retryConfig =
|
25942
|
+
if (!this.config) return;
|
25943
|
+
const retryConfig = this.config.loadPolicy.timeoutRetry;
|
25945
25944
|
const retryCount = this.stats.retry;
|
25946
25945
|
if (shouldRetry(retryConfig, retryCount, true)) {
|
25947
25946
|
this.retry(retryConfig);
|
@@ -29006,7 +29005,7 @@ class Hls {
|
|
29006
29005
|
* Get the video-dev/hls.js package version.
|
29007
29006
|
*/
|
29008
29007
|
static get version() {
|
29009
|
-
return "1.5.10-0.canary.
|
29008
|
+
return "1.5.10-0.canary.10321";
|
29010
29009
|
}
|
29011
29010
|
|
29012
29011
|
/**
|