hls.js 1.5.14-0.canary.10672 → 1.5.14-0.canary.10675

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.light.js CHANGED
@@ -513,7 +513,7 @@
513
513
  // Some browsers don't allow to use bind on console object anyway
514
514
  // fallback to default if needed
515
515
  try {
516
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10672");
516
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10675");
517
517
  } catch (e) {
518
518
  /* log fn threw an exception. All logger methods are no-ops. */
519
519
  return createLogger();
@@ -15631,7 +15631,7 @@
15631
15631
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
15632
15632
  }
15633
15633
 
15634
- var version = "1.5.14-0.canary.10672";
15634
+ var version = "1.5.14-0.canary.10675";
15635
15635
 
15636
15636
  // ensure the worker ends up in the bundle
15637
15637
  // If the worker should not be included this gets aliased to empty.js
@@ -21315,7 +21315,7 @@
21315
21315
  }
21316
21316
  var BYTERANGE = /(\d+)-(\d+)\/(\d+)/;
21317
21317
  var FetchLoader = /*#__PURE__*/function () {
21318
- function FetchLoader(config /* HlsConfig */) {
21318
+ function FetchLoader(config) {
21319
21319
  this.fetchSetup = void 0;
21320
21320
  this.requestTimeout = void 0;
21321
21321
  this.request = null;
@@ -21375,7 +21375,8 @@
21375
21375
  _this.abortInternal();
21376
21376
  callbacks.onTimeout(stats, context, _this.response);
21377
21377
  }, config.timeout);
21378
- self.fetch(this.request).then(function (response) {
21378
+ var fetchPromise = isPromise(this.request) ? this.request.then(self.fetch) : self.fetch(this.request);
21379
+ fetchPromise.then(function (response) {
21379
21380
  _this.response = _this.loader = response;
21380
21381
  var first = Math.max(self.performance.now(), stats.loading.start);
21381
21382
  self.clearTimeout(_this.requestTimeout);