hls.js 1.6.0-beta.3.0.canary.10947 → 1.6.0-beta.3.0.canary.10948

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
@@ -402,7 +402,7 @@ function enableLogs(debugConfig, context, id) {
402
402
  // Some browsers don't allow to use bind on console object anyway
403
403
  // fallback to default if needed
404
404
  try {
405
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.3.0.canary.10947"}`);
405
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.3.0.canary.10948"}`);
406
406
  } catch (e) {
407
407
  /* log fn threw an exception. All logger methods are no-ops. */
408
408
  return createLogger();
@@ -9883,7 +9883,7 @@ var eventemitter3 = {exports: {}};
9883
9883
  var eventemitter3Exports = eventemitter3.exports;
9884
9884
  var EventEmitter = /*@__PURE__*/getDefaultExportFromCjs(eventemitter3Exports);
9885
9885
 
9886
- const version = "1.6.0-beta.3.0.canary.10947";
9886
+ const version = "1.6.0-beta.3.0.canary.10948";
9887
9887
 
9888
9888
  // ensure the worker ends up in the bundle
9889
9889
  // If the worker should not be included this gets aliased to empty.js
@@ -24382,7 +24382,7 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
24382
24382
  checkStart() {
24383
24383
  const schedule = this.schedule;
24384
24384
  const interstitialEvents = schedule.events;
24385
- if (!interstitialEvents || this.playbackDisabled) {
24385
+ if (!interstitialEvents || this.playbackDisabled || !this.media) {
24386
24386
  return;
24387
24387
  }
24388
24388
  // Check buffered to pre-roll
@@ -24424,6 +24424,10 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
24424
24424
  this.setSchedulePosition(-1);
24425
24425
  return;
24426
24426
  }
24427
+ const resumptionTime = interstitial.resumeTime;
24428
+ if (this.timelinePos < resumptionTime) {
24429
+ this.timelinePos = resumptionTime;
24430
+ }
24427
24431
  this.setSchedulePosition(nextIndex);
24428
24432
  }
24429
24433
  }
@@ -24522,10 +24526,8 @@ MediaSource ${JSON.stringify(attachMediaSourceData)} from ${logFromSource}`);
24522
24526
  }
24523
24527
  // Ensure Interstitial is enqueued
24524
24528
  const waitingItem = this.waitingItem;
24529
+ this.setBufferingItem(scheduledItem);
24525
24530
  let player = this.preloadAssets(interstitial, assetListIndex);
24526
- if (!player) {
24527
- this.setBufferingItem(scheduledItem);
24528
- }
24529
24531
  if (!this.eventItemsMatch(scheduledItem, currentItem || waitingItem)) {
24530
24532
  this.waitingItem = scheduledItem;
24531
24533
  this.log(`INTERSTITIAL_STARTED ${segmentToString(scheduledItem)} ${interstitial.appendInPlace ? 'append in place' : ''}`);