hls.js 1.5.9-0.canary.10264 → 1.5.9-0.canary.10267
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 +7 -4
- package/dist/hls.js.map +1 -1
- package/dist/hls.light.js +2 -2
- package/dist/hls.light.min.js +1 -1
- package/dist/hls.light.mjs +2 -2
- package/dist/hls.min.js +1 -1
- package/dist/hls.min.js.map +1 -1
- package/dist/hls.mjs +7 -4
- package/dist/hls.mjs.map +1 -1
- package/dist/hls.worker.js +1 -1
- package/package.json +2 -2
- package/src/controller/subtitle-stream-controller.ts +6 -2
package/dist/hls.mjs
CHANGED
@@ -512,7 +512,7 @@ function enableLogs(debugConfig, context, id) {
|
|
512
512
|
// Some browsers don't allow to use bind on console object anyway
|
513
513
|
// fallback to default if needed
|
514
514
|
try {
|
515
|
-
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.9-0.canary.
|
515
|
+
newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.5.9-0.canary.10267"}`);
|
516
516
|
} catch (e) {
|
517
517
|
/* log fn threw an exception. All logger methods are no-ops. */
|
518
518
|
return createLogger();
|
@@ -18165,8 +18165,8 @@ class SubtitleStreamController extends BaseStreamController {
|
|
18165
18165
|
this.warn(`Subtitle tracks were reset while loading level ${trackId}`);
|
18166
18166
|
return;
|
18167
18167
|
}
|
18168
|
-
const track = levels[
|
18169
|
-
if (trackId >= levels.length ||
|
18168
|
+
const track = levels[trackId];
|
18169
|
+
if (trackId >= levels.length || !track) {
|
18170
18170
|
return;
|
18171
18171
|
}
|
18172
18172
|
this.log(`Subtitle track ${trackId} loaded [${newDetails.startSN},${newDetails.endSN}]${newDetails.lastPartSn ? `[part-${newDetails.lastPartSn}-${newDetails.lastPartIndex}]` : ''},duration:${newDetails.totalduration}`);
|
@@ -18199,6 +18199,9 @@ class SubtitleStreamController extends BaseStreamController {
|
|
18199
18199
|
}
|
18200
18200
|
track.details = newDetails;
|
18201
18201
|
this.levelLastLoaded = track;
|
18202
|
+
if (trackId !== currentTrackId) {
|
18203
|
+
return;
|
18204
|
+
}
|
18202
18205
|
if (!this.startFragRequested && (this.mainDetails || !newDetails.live)) {
|
18203
18206
|
this.setStartPosition(this.mainDetails || newDetails, sliding);
|
18204
18207
|
}
|
@@ -29021,7 +29024,7 @@ class Hls {
|
|
29021
29024
|
* Get the video-dev/hls.js package version.
|
29022
29025
|
*/
|
29023
29026
|
static get version() {
|
29024
|
-
return "1.5.9-0.canary.
|
29027
|
+
return "1.5.9-0.canary.10267";
|
29025
29028
|
}
|
29026
29029
|
|
29027
29030
|
/**
|