hls.js 1.6.0-beta.1.0.canary.10748 → 1.6.0-beta.1.0.canary.10750
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 +36 -3
- package/dist/hls.js.d.ts +4 -0
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +8 -3
- 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 +8 -3
- 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 +36 -3
- 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/config.ts +2 -0
- package/src/controller/cap-level-controller.ts +1 -1
- package/src/controller/eme-controller.ts +26 -0
- package/src/errors.ts +3 -0
package/dist/hls.light.mjs
CHANGED
@@ -28,6 +28,9 @@ let ErrorDetails = /*#__PURE__*/function (ErrorDetails) {
|
|
28
28
|
ErrorDetails["KEY_SYSTEM_SESSION_UPDATE_FAILED"] = "keySystemSessionUpdateFailed";
|
29
29
|
ErrorDetails["KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED"] = "keySystemStatusOutputRestricted";
|
30
30
|
ErrorDetails["KEY_SYSTEM_STATUS_INTERNAL_ERROR"] = "keySystemStatusInternalError";
|
31
|
+
ErrorDetails["KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR"] = "keySystemDestroyMediaKeysError";
|
32
|
+
ErrorDetails["KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR"] = "keySystemDestroyCloseSessionError";
|
33
|
+
ErrorDetails["KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR"] = "keySystemDestroyRemoveSessionError";
|
31
34
|
ErrorDetails["MANIFEST_LOAD_ERROR"] = "manifestLoadError";
|
32
35
|
ErrorDetails["MANIFEST_LOAD_TIMEOUT"] = "manifestLoadTimeOut";
|
33
36
|
ErrorDetails["MANIFEST_PARSING_ERROR"] = "manifestParsingError";
|
@@ -397,7 +400,7 @@ function enableLogs(debugConfig, context, id) {
|
|
397
400
|
// Some browsers don't allow to use bind on console object anyway
|
398
401
|
// fallback to default if needed
|
399
402
|
try {
|
400
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.
|
403
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.10750"}`);
|
401
404
|
} catch (e) {
|
402
405
|
/* log fn threw an exception. All logger methods are no-ops. */
|
403
406
|
return createLogger();
|
@@ -10613,7 +10616,7 @@ class CapLevelController {
|
|
10613
10616
|
/* no-op */
|
10614
10617
|
}
|
10615
10618
|
}
|
10616
|
-
return pixelRatio;
|
10619
|
+
return Math.min(pixelRatio, this.hls.config.maxDevicePixelRatio);
|
10617
10620
|
}
|
10618
10621
|
isLevelAllowed(level) {
|
10619
10622
|
const restrictedLevels = this.restrictedLevels;
|
@@ -17092,6 +17095,8 @@ const hlsDefaultConfig = _objectSpread2(_objectSpread2({
|
|
17092
17095
|
// used by cap-level-controller
|
17093
17096
|
ignoreDevicePixelRatio: false,
|
17094
17097
|
// used by cap-level-controller
|
17098
|
+
maxDevicePixelRatio: Number.POSITIVE_INFINITY,
|
17099
|
+
// used by cap-level-controller
|
17095
17100
|
preferManagedMediaSource: true,
|
17096
17101
|
initialLiveManifestSize: 1,
|
17097
17102
|
// used by stream-controller
|
@@ -19033,7 +19038,7 @@ class GapController extends Logger {
|
|
19033
19038
|
}
|
19034
19039
|
}
|
19035
19040
|
|
19036
|
-
const version = "1.6.0-beta.1.0.canary.
|
19041
|
+
const version = "1.6.0-beta.1.0.canary.10750";
|
19037
19042
|
|
19038
19043
|
// ensure the worker ends up in the bundle
|
19039
19044
|
// If the worker should not be included this gets aliased to empty.js
|