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.js CHANGED
@@ -522,7 +522,7 @@
522
522
  // Some browsers don't allow to use bind on console object anyway
523
523
  // fallback to default if needed
524
524
  try {
525
- newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.13-0.canary.10411");
525
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.14-0.canary.10415");
526
526
  } catch (e) {
527
527
  /* log fn threw an exception. All logger methods are no-ops. */
528
528
  return createLogger();
@@ -10775,8 +10775,8 @@
10775
10775
  };
10776
10776
  _proto.reduceMaxBufferLength = function reduceMaxBufferLength(threshold, fragDuration) {
10777
10777
  var config = this.config;
10778
- var minLength = Math.max(Math.min(threshold, config.maxBufferLength), fragDuration);
10779
- var reducedLength = Math.max(threshold - fragDuration * 3, config.maxMaxBufferLength / 2);
10778
+ var minLength = Math.max(Math.min(threshold - fragDuration, config.maxBufferLength), fragDuration);
10779
+ var reducedLength = Math.max(threshold - fragDuration * 3, config.maxMaxBufferLength / 2, minLength);
10780
10780
  if (reducedLength >= minLength) {
10781
10781
  // reduce max buffer length as it might be too high. we do this to avoid loop flushing ...
10782
10782
  config.maxMaxBufferLength = reducedLength;
@@ -30788,7 +30788,7 @@
30788
30788
  * Get the video-dev/hls.js package version.
30789
30789
  */
30790
30790
  function get() {
30791
- return "1.5.13-0.canary.10411";
30791
+ return "1.5.14-0.canary.10415";
30792
30792
  }
30793
30793
  }, {
30794
30794
  key: "Events",