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.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.3.0.canary.
|
1033
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.3.0.canary.10984");
|
1034
1034
|
} catch (e) {
|
1035
1035
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1036
1036
|
return createLogger();
|
@@ -20047,7 +20047,7 @@
|
|
20047
20047
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
20048
20048
|
}
|
20049
20049
|
|
20050
|
-
var version = "1.6.0-beta.3.0.canary.
|
20050
|
+
var version = "1.6.0-beta.3.0.canary.10984";
|
20051
20051
|
|
20052
20052
|
// ensure the worker ends up in the bundle
|
20053
20053
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -20552,7 +20552,7 @@
|
|
20552
20552
|
// hls.nextLoadLevel remains until it is set to a new value or until a new frag is successfully loaded
|
20553
20553
|
hls.nextLoadLevel = startLevel;
|
20554
20554
|
this.level = hls.loadLevel;
|
20555
|
-
this._hasEnoughToStart =
|
20555
|
+
this._hasEnoughToStart = !!skipSeekToStartPosition;
|
20556
20556
|
}
|
20557
20557
|
// if startPosition undefined but lastCurrentTime set, set startPosition to last currentTime
|
20558
20558
|
if (lastCurrentTime > 0 && startPosition === -1 && !skipSeekToStartPosition) {
|
@@ -21135,7 +21135,7 @@
|
|
21135
21135
|
if (!media) {
|
21136
21136
|
return;
|
21137
21137
|
}
|
21138
|
-
if (!this._hasEnoughToStart && media.
|
21138
|
+
if (!this._hasEnoughToStart && BufferHelper.getBuffered(media).length) {
|
21139
21139
|
this._hasEnoughToStart = true;
|
21140
21140
|
this.seekToStartPos();
|
21141
21141
|
}
|
@@ -21546,7 +21546,9 @@
|
|
21546
21546
|
this.tickImmediate();
|
21547
21547
|
};
|
21548
21548
|
_proto.getMainFwdBufferInfo = function getMainFwdBufferInfo() {
|
21549
|
-
|
21549
|
+
// Observe video SourceBuffer (this.mediaBuffer) only when alt-audio is used, otherwise observe combined media buffer
|
21550
|
+
var bufferOutput = this.mediaBuffer && this.altAudio === 2 ? this.mediaBuffer : this.media;
|
21551
|
+
return this.getFwdBufferInfo(bufferOutput, PlaylistLevelType.MAIN);
|
21550
21552
|
};
|
21551
21553
|
_proto.backtrack = function backtrack(frag) {
|
21552
21554
|
this.couldBacktrack = true;
|