hls.js 1.6.0-beta.2.0.canary.10931 → 1.6.0-beta.2.0.canary.10933
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.d.mts +4 -0
- package/dist/hls.d.ts +4 -0
- package/dist/hls.js +37 -2
- package/dist/hls.js.d.ts +4 -0
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +37 -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 +33 -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 +33 -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/controller/level-controller.ts +8 -0
- package/src/hls.ts +7 -0
- 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.10933"}`);
|
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
|
|
@@ -19157,6 +19175,12 @@ class LevelController extends BasePlaylistController {
|
|
19157
19175
|
set startLevel(newLevel) {
|
19158
19176
|
this._startLevel = newLevel;
|
19159
19177
|
}
|
19178
|
+
get pathways() {
|
19179
|
+
if (this.steering) {
|
19180
|
+
return this.steering.pathways();
|
19181
|
+
}
|
19182
|
+
return [];
|
19183
|
+
}
|
19160
19184
|
get pathwayPriority() {
|
19161
19185
|
if (this.steering) {
|
19162
19186
|
return this.steering.pathwayPriority;
|
@@ -19341,7 +19365,7 @@ function assignTrackIdsByGroup(tracks) {
|
|
19341
19365
|
});
|
19342
19366
|
}
|
19343
19367
|
|
19344
|
-
const version = "1.6.0-beta.2.0.canary.
|
19368
|
+
const version = "1.6.0-beta.2.0.canary.10933";
|
19345
19369
|
|
19346
19370
|
// ensure the worker ends up in the bundle
|
19347
19371
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -22880,6 +22904,13 @@ class Hls {
|
|
22880
22904
|
return this.streamController.forceStartLoad;
|
22881
22905
|
}
|
22882
22906
|
|
22907
|
+
/**
|
22908
|
+
* ContentSteering pathways getter
|
22909
|
+
*/
|
22910
|
+
get pathways() {
|
22911
|
+
return this.levelController.pathways;
|
22912
|
+
}
|
22913
|
+
|
22883
22914
|
/**
|
22884
22915
|
* ContentSteering pathwayPriority getter/setter
|
22885
22916
|
*/
|