hls.js 1.6.0-beta.2.0.canary.10930 → 1.6.0-beta.2.0.canary.10932
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 +23 -4
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +23 -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 +23 -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 +23 -4
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/dist/hls.worker.js.map +1 -1
- package/package.json +1 -1
- package/src/controller/buffer-controller.ts +3 -2
- package/src/loader/fragment.ts +26 -0
package/dist/hls.mjs
CHANGED
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, context, id) {
|
|
402
402
|
// Some browsers don't allow to use bind on console object anyway
|
403
403
|
// fallback to default if needed
|
404
404
|
try {
|
405
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.
|
405
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.10932"}`);
|
406
406
|
} catch (e) {
|
407
407
|
/* log fn threw an exception. All logger methods are no-ops. */
|
408
408
|
return createLogger();
|
@@ -3658,6 +3658,7 @@ class BaseSegment {
|
|
3658
3658
|
};
|
3659
3659
|
}
|
3660
3660
|
this.base = base;
|
3661
|
+
makeEnumerable(this, 'stats');
|
3661
3662
|
}
|
3662
3663
|
|
3663
3664
|
// setByteRange converts a EXT-X-BYTERANGE attribute into a two element array
|
@@ -3995,6 +3996,23 @@ class Part extends BaseSegment {
|
|
3995
3996
|
return !!(elementaryStreams.audio || elementaryStreams.video || elementaryStreams.audiovideo);
|
3996
3997
|
}
|
3997
3998
|
}
|
3999
|
+
function getOwnPropertyDescriptorFromPrototypeChain(object, property) {
|
4000
|
+
const prototype = Object.getPrototypeOf(object);
|
4001
|
+
if (prototype) {
|
4002
|
+
const propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, property);
|
4003
|
+
if (propertyDescriptor) {
|
4004
|
+
return propertyDescriptor;
|
4005
|
+
}
|
4006
|
+
return getOwnPropertyDescriptorFromPrototypeChain(prototype, property);
|
4007
|
+
}
|
4008
|
+
}
|
4009
|
+
function makeEnumerable(object, property) {
|
4010
|
+
const d = getOwnPropertyDescriptorFromPrototypeChain(object, property);
|
4011
|
+
if (d) {
|
4012
|
+
d.enumerable = true;
|
4013
|
+
Object.defineProperty(object, property, d);
|
4014
|
+
}
|
4015
|
+
}
|
3998
4016
|
|
3999
4017
|
const UINT32_MAX$1 = Math.pow(2, 32) - 1;
|
4000
4018
|
const push = [].push;
|
@@ -9855,7 +9873,7 @@ var eventemitter3 = {exports: {}};
|
|
9855
9873
|
var eventemitter3Exports = eventemitter3.exports;
|
9856
9874
|
var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
|
9857
9875
|
|
9858
|
-
const version = "1.6.0-beta.2.0.canary.
|
9876
|
+
const version = "1.6.0-beta.2.0.canary.10932";
|
9859
9877
|
|
9860
9878
|
// ensure the worker ends up in the bundle
|
9861
9879
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -18715,8 +18733,6 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
|
|
18715
18733
|
}
|
18716
18734
|
const playlistEnd = details.edge;
|
18717
18735
|
if (details.live && this.hls.config.liveDurationInfinity) {
|
18718
|
-
// Override duration to Infinity
|
18719
|
-
mediaSource.duration = Infinity;
|
18720
18736
|
const len = details.fragments.length;
|
18721
18737
|
if (len && details.live && !!mediaSource.setLiveSeekableRange) {
|
18722
18738
|
const start = Math.max(0, details.fragmentStart);
|
@@ -18733,6 +18749,9 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
|
|
18733
18749
|
}
|
18734
18750
|
const overrideDuration = (_this$overrides2 = this.overrides) == null ? undefined : _this$overrides2.duration;
|
18735
18751
|
if (overrideDuration) {
|
18752
|
+
if (!isFiniteNumber(overrideDuration)) {
|
18753
|
+
return null;
|
18754
|
+
}
|
18736
18755
|
return {
|
18737
18756
|
duration: overrideDuration
|
18738
18757
|
};
|