hls.js 1.5.7-0.canary.10020 → 1.5.7-0.canary.10022
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 +19 -16
- package/dist/hls.js.d.ts +19 -28
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +6 -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 +6 -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 +19 -16
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/controller/audio-stream-controller.ts +27 -20
- package/src/controller/base-stream-controller.ts +3 -1
- package/src/controller/cap-level-controller.ts +1 -0
- package/src/controller/subtitle-stream-controller.ts +14 -11
package/dist/hls.light.mjs
CHANGED
@@ -512,7 +512,7 @@ function enableLogs(debugConfig, context, id) {
|
|
512
512
|
// Some browsers don't allow to use bind on console object anyway
|
513
513
|
// fallback to default if needed
|
514
514
|
try {
|
515
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.7-0.canary.
|
515
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.7-0.canary.10022"}`);
|
516
516
|
} catch (e) {
|
517
517
|
/* log fn threw an exception. All logger methods are no-ops. */
|
518
518
|
return createLogger();
|
@@ -8214,7 +8214,7 @@ class CapLevelController {
|
|
8214
8214
|
hls.logger.log(`Setting autoLevelCapping to ${maxLevel}: ${levels[maxLevel].height}p@${levels[maxLevel].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`);
|
8215
8215
|
}
|
8216
8216
|
hls.autoLevelCapping = maxLevel;
|
8217
|
-
if (hls.autoLevelCapping > this.autoLevelCapping && this.streamController) {
|
8217
|
+
if (hls.autoLevelEnabled && hls.autoLevelCapping > this.autoLevelCapping && this.streamController) {
|
8218
8218
|
// if auto level capping has a higher value for the previous one, flush the buffer using nextLevelSwitch
|
8219
8219
|
// usually happen when the user go to the fullscreen mode.
|
8220
8220
|
this.streamController.nextLevelSwitch();
|
@@ -13285,7 +13285,9 @@ class BaseStreamController extends TaskLoop {
|
|
13285
13285
|
this.log('Reset loading state');
|
13286
13286
|
this.fragCurrent = null;
|
13287
13287
|
this.fragPrevious = null;
|
13288
|
-
this.state
|
13288
|
+
if (this.state !== State.STOPPED) {
|
13289
|
+
this.state = State.IDLE;
|
13290
|
+
}
|
13289
13291
|
}
|
13290
13292
|
resetStartWhenNotLoaded(level) {
|
13291
13293
|
// if loadedmetadata is not set, it means that first frag request failed
|
@@ -20123,7 +20125,7 @@ class Hls {
|
|
20123
20125
|
* Get the video-dev/hls.js package version.
|
20124
20126
|
*/
|
20125
20127
|
static get version() {
|
20126
|
-
return "1.5.7-0.canary.
|
20128
|
+
return "1.5.7-0.canary.10022";
|
20127
20129
|
}
|
20128
20130
|
|
20129
20131
|
/**
|