hls.js 1.6.0-beta.3.0.canary.10981 → 1.6.0-beta.3.0.canary.10984
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 +15 -6
- package/dist/hls.d.ts +15 -6
- package/dist/hls.js +182 -120
- package/dist/hls.js.d.ts +15 -6
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +7 -5
- 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 +7 -5
- 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 +144 -83
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/config.ts +4 -4
- package/src/controller/base-stream-controller.ts +2 -2
- package/src/controller/id3-track-controller.ts +1 -1
- package/src/controller/interstitial-player.ts +15 -5
- package/src/controller/interstitials-controller.ts +146 -84
- package/src/controller/stream-controller.ts +8 -6
- package/src/define-plugin.d.ts +1 -1
- package/src/hls.ts +4 -1
- package/src/loader/interstitial-event.ts +2 -2
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.3.0.canary.
|
405
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.3.0.canary.10984"}`);
|
406
406
|
} catch (e) {
|
407
407
|
/* log fn threw an exception. All logger methods are no-ops. */
|
408
408
|
return createLogger();
|
@@ -19428,7 +19428,7 @@ function assignTrackIdsByGroup(tracks) {
|
|
19428
19428
|
});
|
19429
19429
|
}
|
19430
19430
|
|
19431
|
-
const version = "1.6.0-beta.3.0.canary.
|
19431
|
+
const version = "1.6.0-beta.3.0.canary.10984";
|
19432
19432
|
|
19433
19433
|
// ensure the worker ends up in the bundle
|
19434
19434
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -19943,7 +19943,7 @@ class StreamController extends BaseStreamController {
|
|
19943
19943
|
// hls.nextLoadLevel remains until it is set to a new value or until a new frag is successfully loaded
|
19944
19944
|
hls.nextLoadLevel = startLevel;
|
19945
19945
|
this.level = hls.loadLevel;
|
19946
|
-
this._hasEnoughToStart =
|
19946
|
+
this._hasEnoughToStart = !!skipSeekToStartPosition;
|
19947
19947
|
}
|
19948
19948
|
// if startPosition undefined but lastCurrentTime set, set startPosition to last currentTime
|
19949
19949
|
if (lastCurrentTime > 0 && startPosition === -1 && !skipSeekToStartPosition) {
|
@@ -20547,7 +20547,7 @@ class StreamController extends BaseStreamController {
|
|
20547
20547
|
if (!media) {
|
20548
20548
|
return;
|
20549
20549
|
}
|
20550
|
-
if (!this._hasEnoughToStart && media.
|
20550
|
+
if (!this._hasEnoughToStart && BufferHelper.getBuffered(media).length) {
|
20551
20551
|
this._hasEnoughToStart = true;
|
20552
20552
|
this.seekToStartPos();
|
20553
20553
|
}
|
@@ -20980,7 +20980,9 @@ class StreamController extends BaseStreamController {
|
|
20980
20980
|
this.tickImmediate();
|
20981
20981
|
}
|
20982
20982
|
getMainFwdBufferInfo() {
|
20983
|
-
|
20983
|
+
// Observe video SourceBuffer (this.mediaBuffer) only when alt-audio is used, otherwise observe combined media buffer
|
20984
|
+
const bufferOutput = this.mediaBuffer && this.altAudio === 2 ? this.mediaBuffer : this.media;
|
20985
|
+
return this.getFwdBufferInfo(bufferOutput, PlaylistLevelType.MAIN);
|
20984
20986
|
}
|
20985
20987
|
get maxBufferLength() {
|
20986
20988
|
const {
|