hls.js 1.5.14-0.canary.10658 → 1.5.14-0.canary.10659

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
@@ -523,7 +523,7 @@
523
523
  // Some browsers don't allow to use bind on console object anyway
524
524
  // fallback to default if needed
525
525
  try {
526
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10658");
526
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10659");
527
527
  } catch (e) {
528
528
  /* log fn threw an exception. All logger methods are no-ops. */
529
529
  return createLogger();
@@ -9212,7 +9212,7 @@
9212
9212
  this.loader.abort();
9213
9213
  }
9214
9214
  };
9215
- _proto.load = function load(frag, _onProgress) {
9215
+ _proto.load = function load(frag, onProgress) {
9216
9216
  var _this = this;
9217
9217
  var url = frag.url;
9218
9218
  if (!url) {
@@ -9258,7 +9258,7 @@
9258
9258
  };
9259
9259
  // Assign frag stats to the loader's stats reference
9260
9260
  frag.stats = loader.stats;
9261
- loader.load(loaderContext, loaderConfig, {
9261
+ var callbacks = {
9262
9262
  onSuccess: function onSuccess(response, stats, context, networkDetails) {
9263
9263
  _this.resetLoader(frag, loader);
9264
9264
  var payload = response.data;
@@ -9312,18 +9312,19 @@
9312
9312
  networkDetails: networkDetails,
9313
9313
  stats: stats
9314
9314
  }));
9315
- },
9316
- onProgress: function onProgress(stats, context, data, networkDetails) {
9317
- if (_onProgress) {
9318
- _onProgress({
9319
- frag: frag,
9320
- part: null,
9321
- payload: data,
9322
- networkDetails: networkDetails
9323
- });
9324
- }
9325
9315
  }
9326
- });
9316
+ };
9317
+ if (onProgress) {
9318
+ callbacks.onProgress = function (stats, context, data, networkDetails) {
9319
+ return onProgress({
9320
+ frag: frag,
9321
+ part: null,
9322
+ payload: data,
9323
+ networkDetails: networkDetails
9324
+ });
9325
+ };
9326
+ }
9327
+ loader.load(loaderContext, loaderConfig, callbacks);
9327
9328
  });
9328
9329
  };
9329
9330
  _proto.loadPart = function loadPart(frag, part, onProgress) {
@@ -17341,7 +17342,7 @@
17341
17342
  return !remuxResult.audio && !remuxResult.video && !remuxResult.text && !remuxResult.id3 && !remuxResult.initSegment;
17342
17343
  }
17343
17344
 
17344
- var version = "1.5.14-0.canary.10658";
17345
+ var version = "1.5.14-0.canary.10659";
17345
17346
 
17346
17347
  // ensure the worker ends up in the bundle
17347
17348
  // If the worker should not be included this gets aliased to empty.js