hls.js 1.6.0-beta.1.0.canary.10787 → 1.6.0-beta.1.0.canary.10788

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.
@@ -400,7 +400,7 @@ function enableLogs(debugConfig, context, id) {
400
400
  // Some browsers don't allow to use bind on console object anyway
401
401
  // fallback to default if needed
402
402
  try {
403
- newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.10787"}`);
403
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.1.0.canary.10788"}`);
404
404
  } catch (e) {
405
405
  /* log fn threw an exception. All logger methods are no-ops. */
406
406
  return createLogger();
@@ -5487,12 +5487,14 @@ function adjustSliding(oldDetails, newDetails, matchingStableVariantOrRendition
5487
5487
  let sliding = 0;
5488
5488
  if (advancedOrStable && delta < oldFragments.length) {
5489
5489
  sliding = oldFragments[delta].start;
5490
+ } else if (advancedOrStable && newDetails.startSN === oldDetails.endSN + 1) {
5491
+ sliding = oldDetails.fragmentEnd;
5490
5492
  } else if (advancedOrStable && matchingStableVariantOrRendition) {
5491
- // align new start with old end (updated playlist start sequence is past end sequence of last update)
5492
- sliding = oldDetails.edge;
5493
- } else if (!newDetails.skippedSegments && newDetails.fragments[0].start === 0) {
5493
+ // align with expected position (updated playlist start sequence is past end sequence of last update)
5494
+ sliding = oldDetails.fragmentStart + delta * newDetails.levelTargetDuration;
5495
+ } else if (!newDetails.skippedSegments && newDetails.fragmentStart === 0) {
5494
5496
  // align new start with old (playlist switch has a sequence with no overlap and should not be used for alignment)
5495
- sliding = oldDetails.fragments[0].start;
5497
+ sliding = oldDetails.fragmentStart;
5496
5498
  } else {
5497
5499
  // new details already has a sliding offset or has skipped segments
5498
5500
  return;
@@ -19117,7 +19119,7 @@ class GapController extends Logger {
19117
19119
  }
19118
19120
  }
19119
19121
 
19120
- const version = "1.6.0-beta.1.0.canary.10787";
19122
+ const version = "1.6.0-beta.1.0.canary.10788";
19121
19123
 
19122
19124
  // ensure the worker ends up in the bundle
19123
19125
  // If the worker should not be included this gets aliased to empty.js