hls.js 1.6.0-beta.2.0.canary.10912 → 1.6.0-beta.2.0.canary.10915

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.
@@ -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.2.0.canary.10912"}`);
405
+ newLogger.log(`Debug logs enabled for "${context}" in hls.js version ${"1.6.0-beta.2.0.canary.10915"}`);
406
406
  } catch (e) {
407
407
  /* log fn threw an exception. All logger methods are no-ops. */
408
408
  return createLogger();
@@ -7698,6 +7698,10 @@ class BaseStreamController extends TaskLoop {
7698
7698
  if (hasSecondBufferedRange) {
7699
7699
  return false;
7700
7700
  }
7701
+ // Playhead is in unbuffered region. Marking EoS now could result in Safari failing to dispatch "ended" event following seek on start.
7702
+ if (this.media.currentTime < bufferInfo.start) {
7703
+ return false;
7704
+ }
7701
7705
  const partList = levelDetails.partList;
7702
7706
  // Since the last part isn't guaranteed to correspond to the last playlist segment for Low-Latency HLS,
7703
7707
  // check instead if the last part is buffered.
@@ -19133,7 +19137,7 @@ class GapController extends Logger {
19133
19137
  }
19134
19138
  }
19135
19139
 
19136
- const version = "1.6.0-beta.2.0.canary.10912";
19140
+ const version = "1.6.0-beta.2.0.canary.10915";
19137
19141
 
19138
19142
  // ensure the worker ends up in the bundle
19139
19143
  // If the worker should not be included this gets aliased to empty.js