hls.js 1.5.14-0.canary.10656 → 1.5.14-0.canary.10659
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 +16 -15
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +16 -15
- 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 +15 -15
- 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 +14 -15
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/exports-named.ts +17 -9
- package/src/loader/fragment-loader.ts +13 -12
package/dist/hls.light.js
CHANGED
@@ -494,7 +494,7 @@
|
|
494
494
|
// Some browsers don't allow to use bind on console object anyway
|
495
495
|
// fallback to default if needed
|
496
496
|
try {
|
497
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.
|
497
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10659");
|
498
498
|
} catch (e) {
|
499
499
|
/* log fn threw an exception. All logger methods are no-ops. */
|
500
500
|
return createLogger();
|
@@ -11440,7 +11440,7 @@
|
|
11440
11440
|
this.loader.abort();
|
11441
11441
|
}
|
11442
11442
|
};
|
11443
|
-
_proto.load = function load(frag,
|
11443
|
+
_proto.load = function load(frag, onProgress) {
|
11444
11444
|
var _this = this;
|
11445
11445
|
var url = frag.url;
|
11446
11446
|
if (!url) {
|
@@ -11486,7 +11486,7 @@
|
|
11486
11486
|
};
|
11487
11487
|
// Assign frag stats to the loader's stats reference
|
11488
11488
|
frag.stats = loader.stats;
|
11489
|
-
|
11489
|
+
var callbacks = {
|
11490
11490
|
onSuccess: function onSuccess(response, stats, context, networkDetails) {
|
11491
11491
|
_this.resetLoader(frag, loader);
|
11492
11492
|
var payload = response.data;
|
@@ -11540,18 +11540,19 @@
|
|
11540
11540
|
networkDetails: networkDetails,
|
11541
11541
|
stats: stats
|
11542
11542
|
}));
|
11543
|
-
},
|
11544
|
-
onProgress: function onProgress(stats, context, data, networkDetails) {
|
11545
|
-
if (_onProgress) {
|
11546
|
-
_onProgress({
|
11547
|
-
frag: frag,
|
11548
|
-
part: null,
|
11549
|
-
payload: data,
|
11550
|
-
networkDetails: networkDetails
|
11551
|
-
});
|
11552
|
-
}
|
11553
11543
|
}
|
11554
|
-
}
|
11544
|
+
};
|
11545
|
+
if (onProgress) {
|
11546
|
+
callbacks.onProgress = function (stats, context, data, networkDetails) {
|
11547
|
+
return onProgress({
|
11548
|
+
frag: frag,
|
11549
|
+
part: null,
|
11550
|
+
payload: data,
|
11551
|
+
networkDetails: networkDetails
|
11552
|
+
});
|
11553
|
+
};
|
11554
|
+
}
|
11555
|
+
loader.load(loaderContext, loaderConfig, callbacks);
|
11555
11556
|
});
|
11556
11557
|
};
|
11557
11558
|
_proto.loadPart = function loadPart(frag, part, onProgress) {
|
@@ -19315,7 +19316,7 @@
|
|
19315
19316
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
19316
19317
|
}
|
19317
19318
|
|
19318
|
-
var version = "1.5.14-0.canary.
|
19319
|
+
var version = "1.5.14-0.canary.10659";
|
19319
19320
|
|
19320
19321
|
// ensure the worker ends up in the bundle
|
19321
19322
|
// If the worker should not be included this gets aliased to empty.js
|