hls.js 1.5.13-0.canary.10411 → 1.5.14-0.canary.10415

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
@@ -493,7 +493,7 @@
493
493
  // Some browsers don't allow to use bind on console object anyway
494
494
  // fallback to default if needed
495
495
  try {
496
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.13-0.canary.10411");
496
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10415");
497
497
  } catch (e) {
498
498
  /* log fn threw an exception. All logger methods are no-ops. */
499
499
  return createLogger();
@@ -13597,8 +13597,8 @@
13597
13597
  };
13598
13598
  _proto.reduceMaxBufferLength = function reduceMaxBufferLength(threshold, fragDuration) {
13599
13599
  var config = this.config;
13600
- var minLength = Math.max(Math.min(threshold, config.maxBufferLength), fragDuration);
13601
- var reducedLength = Math.max(threshold - fragDuration * 3, config.maxMaxBufferLength / 2);
13600
+ var minLength = Math.max(Math.min(threshold - fragDuration, config.maxBufferLength), fragDuration);
13601
+ var reducedLength = Math.max(threshold - fragDuration * 3, config.maxMaxBufferLength / 2, minLength);
13602
13602
  if (reducedLength >= minLength) {
13603
13603
  // reduce max buffer length as it might be too high. we do this to avoid loop flushing ...
13604
13604
  config.maxMaxBufferLength = reducedLength;
@@ -21987,7 +21987,7 @@
21987
21987
  * Get the video-dev/hls.js package version.
21988
21988
  */
21989
21989
  function get() {
21990
- return "1.5.13-0.canary.10411";
21990
+ return "1.5.14-0.canary.10415";
21991
21991
  }
21992
21992
  }, {
21993
21993
  key: "Events",