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.js
CHANGED
@@ -1030,7 +1030,7 @@
|
|
1030
1030
|
// Some browsers don't allow to use bind on console object anyway
|
1031
1031
|
// fallback to default if needed
|
1032
1032
|
try {
|
1033
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.
|
1033
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10933");
|
1034
1034
|
} catch (e) {
|
1035
1035
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1036
1036
|
return createLogger();
|
@@ -3187,6 +3187,7 @@
|
|
3187
3187
|
};
|
3188
3188
|
}
|
3189
3189
|
this.base = base;
|
3190
|
+
makeEnumerable(this, 'stats');
|
3190
3191
|
}
|
3191
3192
|
|
3192
3193
|
// setByteRange converts a EXT-X-BYTERANGE attribute into a two element array
|
@@ -3567,6 +3568,23 @@
|
|
3567
3568
|
}
|
3568
3569
|
}]);
|
3569
3570
|
}(BaseSegment);
|
3571
|
+
function getOwnPropertyDescriptorFromPrototypeChain(object, property) {
|
3572
|
+
var prototype = Object.getPrototypeOf(object);
|
3573
|
+
if (prototype) {
|
3574
|
+
var propertyDescriptor = Object.getOwnPropertyDescriptor(prototype, property);
|
3575
|
+
if (propertyDescriptor) {
|
3576
|
+
return propertyDescriptor;
|
3577
|
+
}
|
3578
|
+
return getOwnPropertyDescriptorFromPrototypeChain(prototype, property);
|
3579
|
+
}
|
3580
|
+
}
|
3581
|
+
function makeEnumerable(object, property) {
|
3582
|
+
var d = getOwnPropertyDescriptorFromPrototypeChain(object, property);
|
3583
|
+
if (d) {
|
3584
|
+
d.enumerable = true;
|
3585
|
+
Object.defineProperty(object, property, d);
|
3586
|
+
}
|
3587
|
+
}
|
3570
3588
|
|
3571
3589
|
/**
|
3572
3590
|
* Provides methods dealing with buffer length retrieval for example.
|
@@ -19752,6 +19770,14 @@
|
|
19752
19770
|
set: function set(newLevel) {
|
19753
19771
|
this._startLevel = newLevel;
|
19754
19772
|
}
|
19773
|
+
}, {
|
19774
|
+
key: "pathways",
|
19775
|
+
get: function get() {
|
19776
|
+
if (this.steering) {
|
19777
|
+
return this.steering.pathways();
|
19778
|
+
}
|
19779
|
+
return [];
|
19780
|
+
}
|
19755
19781
|
}, {
|
19756
19782
|
key: "pathwayPriority",
|
19757
19783
|
get: function get() {
|
@@ -19962,7 +19988,7 @@
|
|
19962
19988
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
19963
19989
|
}
|
19964
19990
|
|
19965
|
-
var version = "1.6.0-beta.2.0.canary.
|
19991
|
+
var version = "1.6.0-beta.2.0.canary.10933";
|
19966
19992
|
|
19967
19993
|
// ensure the worker ends up in the bundle
|
19968
19994
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -23534,6 +23560,15 @@
|
|
23534
23560
|
return this.streamController.forceStartLoad;
|
23535
23561
|
}
|
23536
23562
|
|
23563
|
+
/**
|
23564
|
+
* ContentSteering pathways getter
|
23565
|
+
*/
|
23566
|
+
}, {
|
23567
|
+
key: "pathways",
|
23568
|
+
get: function get() {
|
23569
|
+
return this.levelController.pathways;
|
23570
|
+
}
|
23571
|
+
|
23537
23572
|
/**
|
23538
23573
|
* ContentSteering pathwayPriority getter/setter
|
23539
23574
|
*/
|