hls.js 1.6.1-0.canary.11101 → 1.6.1-0.canary.11104

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
@@ -1194,7 +1194,7 @@
1194
1194
  // Some browsers don't allow to use bind on console object anyway
1195
1195
  // fallback to default if needed
1196
1196
  try {
1197
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.1-0.canary.11101");
1197
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.6.1-0.canary.11104");
1198
1198
  } catch (e) {
1199
1199
  /* log fn threw an exception. All logger methods are no-ops. */
1200
1200
  return createLogger();
@@ -16716,7 +16716,7 @@
16716
16716
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
16717
16717
  }
16718
16718
 
16719
- var version = "1.6.1-0.canary.11101";
16719
+ var version = "1.6.1-0.canary.11104";
16720
16720
 
16721
16721
  // ensure the worker ends up in the bundle
16722
16722
  // If the worker should not be included this gets aliased to empty.js
@@ -19408,27 +19408,24 @@
19408
19408
  err: error,
19409
19409
  fatal: false
19410
19410
  };
19411
+ var mediaError = (_this12$media = _this12.media) == null ? void 0 : _this12$media.error;
19411
19412
  if (error.code === DOMException.QUOTA_EXCEEDED_ERR) {
19412
19413
  // QuotaExceededError: http://www.w3.org/TR/html5/infrastructure.html#quotaexceedederror
19413
19414
  // let's stop appending any segments, and report BUFFER_FULL_ERROR error
19414
19415
  event.details = ErrorDetails.BUFFER_FULL_ERROR;
19415
- } else if (error.code === DOMException.INVALID_STATE_ERR && _this12.mediaSourceOpenOrEnded && !((_this12$media = _this12.media) != null && _this12$media.error)) {
19416
+ } else if (error.code === DOMException.INVALID_STATE_ERR && _this12.mediaSourceOpenOrEnded && !mediaError) {
19416
19417
  // Allow retry for "Failed to execute 'appendBuffer' on 'SourceBuffer': This SourceBuffer is still processing" errors
19417
19418
  event.errorAction = createDoNothingErrorAction(true);
19418
- } else if (error.name === TRACK_REMOVED_ERROR_NAME) {
19419
+ } else if (error.name === TRACK_REMOVED_ERROR_NAME && _this12.sourceBufferCount === 0) {
19419
19420
  // Do nothing if sourceBuffers were removed (media is detached and append was not aborted)
19420
- if (_this12.sourceBufferCount === 0) {
19421
- event.errorAction = createDoNothingErrorAction(true);
19422
- } else {
19423
- ++_this12.appendErrors[type];
19424
- }
19421
+ event.errorAction = createDoNothingErrorAction(true);
19425
19422
  } else {
19426
19423
  var appendErrorCount = ++_this12.appendErrors[type];
19427
19424
  /* with UHD content, we could get loop of quota exceeded error until
19428
19425
  browser is able to evict some data from sourcebuffer. Retrying can help recover.
19429
19426
  */
19430
- _this12.warn("Failed " + appendErrorCount + "/" + _this12.hls.config.appendErrorMaxRetry + " times to append segment in \"" + type + "\" sourceBuffer");
19431
- if (appendErrorCount >= _this12.hls.config.appendErrorMaxRetry) {
19427
+ _this12.warn("Failed " + appendErrorCount + "/" + _this12.hls.config.appendErrorMaxRetry + " times to append segment in \"" + type + "\" sourceBuffer (" + (mediaError ? mediaError : 'no media error') + ")");
19428
+ if (appendErrorCount >= _this12.hls.config.appendErrorMaxRetry || !!mediaError) {
19432
19429
  event.fatal = true;
19433
19430
  }
19434
19431
  }