hls.js 1.6.0-beta.2.0.canary.10931 → 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 +20 -2
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +20 -2
- 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 +20 -2
- 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 +20 -2
- 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/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
|
|
@@ -19341,7 +19359,7 @@ function assignTrackIdsByGroup(tracks) {
|
|
19341
19359
|
});
|
19342
19360
|
}
|
19343
19361
|
|
19344
|
-
const version = "1.6.0-beta.2.0.canary.
|
19362
|
+
const version = "1.6.0-beta.2.0.canary.10932";
|
19345
19363
|
|
19346
19364
|
// ensure the worker ends up in the bundle
|
19347
19365
|
// If the worker should not be included this gets aliased to empty.js
|