hls.js 1.6.0-beta.2.0.canary.10837 → 1.6.0-beta.2.0.canary.10842
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 +1 -0
- package/dist/hls.d.ts +1 -0
- package/dist/hls.js +38 -36
- package/dist/hls.js.d.ts +1 -0
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +4 -8
- 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 +4 -8
- 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 +14 -12
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/controller/buffer-controller.ts +1 -13
- package/src/controller/interstitials-controller.ts +28 -4
- package/src/controller/stream-controller.ts +1 -4
package/dist/hls.light.js
CHANGED
@@ -1029,7 +1029,7 @@
|
|
1029
1029
|
// Some browsers don't allow to use bind on console object anyway
|
1030
1030
|
// fallback to default if needed
|
1031
1031
|
try {
|
1032
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.
|
1032
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0-beta.2.0.canary.10842");
|
1033
1033
|
} catch (e) {
|
1034
1034
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1035
1035
|
return createLogger();
|
@@ -4699,7 +4699,7 @@
|
|
4699
4699
|
_this18.hls.trigger(Events.LIVE_BACK_BUFFER_REACHED, {
|
4700
4700
|
bufferEnd: targetBackBufferPosition
|
4701
4701
|
});
|
4702
|
-
} else if (track != null && track.ended
|
4702
|
+
} else if (track != null && track.ended) {
|
4703
4703
|
_this18.log("Cannot flush " + type + " back buffer while SourceBuffer is in ended state");
|
4704
4704
|
return;
|
4705
4705
|
}
|
@@ -4726,13 +4726,9 @@
|
|
4726
4726
|
}
|
4727
4727
|
var bufferStart = buffered.start(numBufferedRanges - 1);
|
4728
4728
|
var bufferEnd = buffered.end(numBufferedRanges - 1);
|
4729
|
-
var track = _this19.tracks[type];
|
4730
4729
|
// No flush if we can tolerate the current buffer length or the current buffer range we would flush is contiguous with current position
|
4731
4730
|
if (targetFrontBufferPosition > bufferStart || currentTime >= bufferStart && currentTime <= bufferEnd) {
|
4732
4731
|
return;
|
4733
|
-
} else if (track != null && track.ended && currentTime - bufferEnd < 2 * targetDuration) {
|
4734
|
-
_this19.log("Cannot flush " + type + " front buffer while SourceBuffer is in ended state");
|
4735
|
-
return;
|
4736
4732
|
}
|
4737
4733
|
_this19.hls.trigger(Events.BUFFER_FLUSHING, {
|
4738
4734
|
startOffset: bufferStart,
|
@@ -19802,7 +19798,7 @@
|
|
19802
19798
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
19803
19799
|
}
|
19804
19800
|
|
19805
|
-
var version = "1.6.0-beta.2.0.canary.
|
19801
|
+
var version = "1.6.0-beta.2.0.canary.10842";
|
19806
19802
|
|
19807
19803
|
// ensure the worker ends up in the bundle
|
19808
19804
|
// If the worker should not be included this gets aliased to empty.js
|
@@ -20983,7 +20979,7 @@
|
|
20983
20979
|
};
|
20984
20980
|
_proto.onBufferFlushed = function onBufferFlushed(event, _ref) {
|
20985
20981
|
var type = _ref.type;
|
20986
|
-
if (type !== ElementaryStreamTypes.AUDIO ||
|
20982
|
+
if (type !== ElementaryStreamTypes.AUDIO || !this.altAudio) {
|
20987
20983
|
var mediaBuffer = (type === ElementaryStreamTypes.VIDEO ? this.videoBuffer : this.mediaBuffer) || this.media;
|
20988
20984
|
this.afterBufferFlushed(mediaBuffer, type, PlaylistLevelType.MAIN);
|
20989
20985
|
this.tick();
|