hls.js 1.6.0-rc.2.0.canary.11081 → 1.6.0
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 +65 -20
- package/dist/hls.js.d.ts +1 -0
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +12 -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 +14 -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 +66 -21
- 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/controller/abr-controller.ts +10 -5
- package/src/controller/base-stream-controller.ts +8 -1
- package/src/controller/interstitials-controller.ts +61 -17
- package/src/controller/interstitials-schedule.ts +1 -1
- package/src/exports-named.ts +2 -0
package/dist/hls.light.js
CHANGED
@@ -1044,7 +1044,7 @@
|
|
1044
1044
|
// Some browsers don't allow to use bind on console object anyway
|
1045
1045
|
// fallback to default if needed
|
1046
1046
|
try {
|
1047
|
-
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0
|
1047
|
+
newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.0");
|
1048
1048
|
} catch (e) {
|
1049
1049
|
/* log fn threw an exception. All logger methods are no-ops. */
|
1050
1050
|
return createLogger();
|
@@ -3469,6 +3469,7 @@
|
|
3469
3469
|
_this.fragCurrent = null;
|
3470
3470
|
_this.partCurrent = null;
|
3471
3471
|
_this.bitrateTestDelay = 0;
|
3472
|
+
_this.rebufferNotice = -1;
|
3472
3473
|
_this.bwEstimator = void 0;
|
3473
3474
|
/*
|
3474
3475
|
This method monitors the download rate of the current fragment, and will downswitch if that fragment will not load
|
@@ -3859,6 +3860,7 @@
|
|
3859
3860
|
if (bufferStarvationDelay) {
|
3860
3861
|
var _bestLevel = this.findBestLevel(avgbw, minAutoLevel, maxAutoLevel, bufferStarvationDelay, 0, bwFactor, bwUpFactor);
|
3861
3862
|
if (_bestLevel >= 0) {
|
3863
|
+
this.rebufferNotice = -1;
|
3862
3864
|
return _bestLevel;
|
3863
3865
|
}
|
3864
3866
|
}
|
@@ -3881,7 +3883,10 @@
|
|
3881
3883
|
}
|
3882
3884
|
}
|
3883
3885
|
var bestLevel = this.findBestLevel(avgbw, minAutoLevel, maxAutoLevel, bufferStarvationDelay, maxStarvationDelay, bwFactor, bwUpFactor);
|
3884
|
-
this.
|
3886
|
+
if (this.rebufferNotice !== bestLevel) {
|
3887
|
+
this.rebufferNotice = bestLevel;
|
3888
|
+
this.info((bufferStarvationDelay ? 'rebuffering expected' : 'buffer is empty') + ", optimal quality level " + bestLevel);
|
3889
|
+
}
|
3885
3890
|
if (bestLevel > -1) {
|
3886
3891
|
return bestLevel;
|
3887
3892
|
}
|
@@ -17422,6 +17427,10 @@
|
|
17422
17427
|
frag = this.getFragmentAtPosition(pos, end, levelDetails);
|
17423
17428
|
}
|
17424
17429
|
var programFrag = this.filterReplacedPrimary(frag, levelDetails);
|
17430
|
+
if (!programFrag && frag) {
|
17431
|
+
var curSNIdx = frag.sn - levelDetails.startSN;
|
17432
|
+
programFrag = this.filterReplacedPrimary(fragments[curSNIdx + 1] || null, levelDetails);
|
17433
|
+
}
|
17425
17434
|
return this.mapToInitFragWhenRequired(programFrag);
|
17426
17435
|
};
|
17427
17436
|
_proto.isLoopLoading = function isLoopLoading(frag, targetBufferTime) {
|
@@ -20287,7 +20296,7 @@
|
|
20287
20296
|
return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
|
20288
20297
|
}
|
20289
20298
|
|
20290
|
-
var version = "1.6.0
|
20299
|
+
var version = "1.6.0";
|
20291
20300
|
|
20292
20301
|
// ensure the worker ends up in the bundle
|
20293
20302
|
// If the worker should not be included this gets aliased to empty.js
|