hls.js 1.5.9-0.canary.10262 → 1.5.9-0.canary.10265

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 CHANGED
@@ -637,7 +637,7 @@
637
637
  // Some browsers don't allow to use bind on console object anyway
638
638
  // fallback to default if needed
639
639
  try {
640
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.10262");
640
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.9-0.canary.10265");
641
641
  } catch (e) {
642
642
  /* log fn threw an exception. All logger methods are no-ops. */
643
643
  return createLogger();
@@ -18680,8 +18680,8 @@
18680
18680
  this.warn("Subtitle tracks were reset while loading level " + trackId);
18681
18681
  return;
18682
18682
  }
18683
- var track = levels[currentTrackId];
18684
- if (trackId >= levels.length || trackId !== currentTrackId || !track) {
18683
+ var track = levels[trackId];
18684
+ if (trackId >= levels.length || !track) {
18685
18685
  return;
18686
18686
  }
18687
18687
  this.log("Subtitle track " + trackId + " loaded [" + newDetails.startSN + "," + newDetails.endSN + "]" + (newDetails.lastPartSn ? "[part-" + newDetails.lastPartSn + "-" + newDetails.lastPartIndex + "]" : '') + ",duration:" + newDetails.totalduration);
@@ -18714,6 +18714,9 @@
18714
18714
  }
18715
18715
  track.details = newDetails;
18716
18716
  this.levelLastLoaded = track;
18717
+ if (trackId !== currentTrackId) {
18718
+ return;
18719
+ }
18717
18720
  if (!this.startFragRequested && (this.mainDetails || !newDetails.live)) {
18718
18721
  this.setStartPosition(this.mainDetails || newDetails, sliding);
18719
18722
  }
@@ -30513,7 +30516,7 @@
30513
30516
  * Get the video-dev/hls.js package version.
30514
30517
  */
30515
30518
  function get() {
30516
- return "1.5.9-0.canary.10262";
30519
+ return "1.5.9-0.canary.10265";
30517
30520
  }
30518
30521
  }, {
30519
30522
  key: "Events",