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.light.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();
|
@@ -2786,6 +2786,7 @@ class BaseSegment {
|
|
2786
2786
|
};
|
2787
2787
|
}
|
2788
2788
|
this.base = base;
|
2789
|
+
makeEnumerable(this, 'stats');
|
2789
2790
|
}
|
2790
2791
|
|
2791
2792
|
// setByteRange converts a EXT-X-BYTERANGE attribute into a two element array
|
@@ -3123,6 +3124,23 @@ class Part extends BaseSegment {
|
|
3123
3124
|
return !!(elementaryStreams.audio || elementaryStreams.video || elementaryStreams.audiovideo);
|
3124
3125
|
}
|
3125
3126
|
}
|
3127
|
+
function getOwnPropertyDescriptorFromPrototypeChain(object, property) {
|
3128
|
+
const prototype = Object.getPrototypeOf(object);
|
3129
|
+
if (prototype) {
|
3130
|
+
const propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, property);
|
3131
|
+
if (propertyDescriptor) {
|
3132
|
+
return propertyDescriptor;
|
3133
|
+
}
|
3134
|
+
return getOwnPropertyDescriptorFromPrototypeChain(prototype, property);
|
3135
|
+
}
|
3136
|
+
}
|
3137
|
+
function makeEnumerable(object, property) {
|
3138
|
+
const d = getOwnPropertyDescriptorFromPrototypeChain(object, property);
|
3139
|
+
if (d) {
|
3140
|
+
d.enumerable = true;
|
3141
|
+
Object.defineProperty(object, property, d);
|
3142
|
+
}
|
3143
|
+
}
|
3126
3144
|
|
3127
3145
|
const DEFAULT_TARGET_DURATION = 10;
|
3128
3146
|
|
@@ -10138,8 +10156,6 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
|
|
10138
10156
|
}
|
10139
10157
|
const playlistEnd = details.edge;
|
10140
10158
|
if (details.live && this.hls.config.liveDurationInfinity) {
|
10141
|
-
// Override duration to Infinity
|
10142
|
-
mediaSource.duration = Infinity;
|
10143
10159
|
const len = details.fragments.length;
|
10144
10160
|
if (len && details.live && !!mediaSource.setLiveSeekableRange) {
|
10145
10161
|
const start = Math.max(0, details.fragmentStart);
|
@@ -10156,6 +10172,9 @@ transfer tracks: ${JSON.stringify(transferredTracks, (key, value) => key === 'in
|
|
10156
10172
|
}
|
10157
10173
|
const overrideDuration = (_this$overrides2 = this.overrides) == null ? undefined : _this$overrides2.duration;
|
10158
10174
|
if (overrideDuration) {
|
10175
|
+
if (!isFiniteNumber(overrideDuration)) {
|
10176
|
+
return null;
|
10177
|
+
}
|
10159
10178
|
return {
|
10160
10179
|
duration: overrideDuration
|
10161
10180
|
};
|
@@ -19340,7 +19359,7 @@ function assignTrackIdsByGroup(tracks) {
|
|
19340
19359
|
});
|
19341
19360
|
}
|
19342
19361
|
|
19343
|
-
const version = "1.6.0-beta.2.0.canary.
|
19362
|
+
const version = "1.6.0-beta.2.0.canary.10932";
|
19344
19363
|
|
19345
19364
|
// ensure the worker ends up in the bundle
|
19346
19365
|
// If the worker should not be included this gets aliased to empty.js
|