hls.js 1.5.11-0.canary.10336 → 1.5.12-0.canary.10338
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 +6 -3
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +3 -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 +3 -3
- 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 +6 -3
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +1 -1
- package/src/controller/error-controller.ts +5 -1
- package/src/controller/subtitle-stream-controller.ts +3 -0
package/dist/hls.mjs
CHANGED
@@ -501,7 +501,7 @@ function enableLogs(debugConfig, context, id) {
|
|
501
501
|
// Some browsers don't allow to use bind on console object anyway
|
502
502
|
// fallback to default if needed
|
503
503
|
try {
|
504
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.
|
504
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.12-0.canary.10338"}`);
|
505
505
|
} catch (e) {
|
506
506
|
/* log fn threw an exception. All logger methods are no-ops. */
|
507
507
|
return createLogger();
|
@@ -6225,7 +6225,7 @@ class ErrorController extends Logger {
|
|
6225
6225
|
var _level$audioGroups, _level$subtitleGroups;
|
6226
6226
|
const levelCandidate = levels[candidate];
|
6227
6227
|
// Skip level switch if GAP tag is found in next level at same position
|
6228
|
-
if (errorDetails === ErrorDetails.FRAG_GAP && data.frag) {
|
6228
|
+
if (errorDetails === ErrorDetails.FRAG_GAP && fragErrorType === PlaylistLevelType.MAIN && data.frag) {
|
6229
6229
|
const levelDetails = levels[candidate].details;
|
6230
6230
|
if (levelDetails) {
|
6231
6231
|
const fragCandidate = findFragmentByPTS(data.frag, levelDetails.fragments, data.frag.start);
|
@@ -18111,6 +18111,9 @@ class SubtitleStreamController extends BaseStreamController {
|
|
18111
18111
|
onError(event, data) {
|
18112
18112
|
const frag = data.frag;
|
18113
18113
|
if ((frag == null ? void 0 : frag.type) === PlaylistLevelType.SUBTITLE) {
|
18114
|
+
if (data.details === ErrorDetails.FRAG_GAP) {
|
18115
|
+
this.fragmentTracker.fragBuffered(frag, true);
|
18116
|
+
}
|
18114
18117
|
if (this.fragCurrent) {
|
18115
18118
|
this.fragCurrent.abortRequests();
|
18116
18119
|
}
|
@@ -29019,7 +29022,7 @@ class Hls {
|
|
29019
29022
|
* Get the video-dev/hls.js package version.
|
29020
29023
|
*/
|
29021
29024
|
static get version() {
|
29022
|
-
return "1.5.
|
29025
|
+
return "1.5.12-0.canary.10338";
|
29023
29026
|
}
|
29024
29027
|
|
29025
29028
|
/**
|