hls.js 1.6.6-0.canary.11353 → 1.6.6-0.canary.11355

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.mjs CHANGED
@@ -523,7 +523,7 @@ function enableLogs(debugConfig, context, id) {
523
523
  // Some browsers don't allow to use bind on console object anyway
524
524
  // fallback to default if needed
525
525
  try {
526
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.6-0.canary.11353"}`);
526
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.6-0.canary.11355"}`);
527
527
  } catch (e) {
528
528
  /* log fn threw an exception. All logger methods are no-ops. */
529
529
  return createLogger();
@@ -10267,7 +10267,7 @@ function requireEventemitter3 () {
10267
10267
  var eventemitter3Exports = requireEventemitter3();
10268
10268
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
10269
10269
 
10270
- const version = "1.6.6-0.canary.11353";
10270
+ const version = "1.6.6-0.canary.11355";
10271
10271
 
10272
10272
  // ensure the worker ends up in the bundle
10273
10273
  // If the worker should not be included this gets aliased to empty.js
@@ -25259,6 +25259,14 @@ Schedule: ${scheduleItems.map(seg => segmentToString(seg))} pos: ${this.timeline
25259
25259
  scheduleIndex: index,
25260
25260
  player
25261
25261
  });
25262
+ if (currentItem !== this.playingItem) {
25263
+ // Schedule change occured on INTERSTITIAL_ASSET_ENDED
25264
+ if (this.itemsMatch(currentItem, this.playingItem) && !this.playingAsset) {
25265
+ this.advanceAfterAssetEnded(interstitial, this.findItemIndex(this.playingItem), playingAssetListIndex);
25266
+ }
25267
+ // Navigation occured on INTERSTITIAL_ASSET_ENDED
25268
+ return;
25269
+ }
25262
25270
  this.retreiveMediaSource(assetId, scheduledItem);
25263
25271
  if (player.media && !((_this$detachedData3 = this.detachedData) != null && _this$detachedData3.mediaSource)) {
25264
25272
  player.detachMedia();
@@ -25280,7 +25288,7 @@ Schedule: ${scheduleItems.map(seg => segmentToString(seg))} pos: ${this.timeline
25280
25288
  this.updateSchedule();
25281
25289
  const items = this.schedule.items;
25282
25290
  if (scheduledItem && items) {
25283
- const updatedIndex = this.schedule.findItemIndex(scheduledItem);
25291
+ const updatedIndex = this.findItemIndex(scheduledItem);
25284
25292
  this.advanceSchedule(updatedIndex, items, assetListIndex, currentItem, playingLastItem);
25285
25293
  }
25286
25294
  return;
@@ -26226,7 +26234,7 @@ Schedule: ${scheduleItems.map(seg => segmentToString(seg))} pos: ${this.timeline
26226
26234
  // If all assets in interstitial fail, mark the interstitial with an error
26227
26235
  if (!interstitial.assetList.some(asset => !asset.error)) {
26228
26236
  interstitial.error = error;
26229
- } else if (interstitial.appendInPlace) {
26237
+ } else {
26230
26238
  // Reset level details and reload/parse media playlists to align with updated schedule
26231
26239
  for (let i = assetListIndex; i < interstitial.assetList.length; i++) {
26232
26240
  this.resetAssetPlayer(interstitial.assetList[i].identifier);