hls.js 1.5.12-0.canary.10363 → 1.5.12-0.canary.10366

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.12-0.canary.10363");
525
+ newLogger.log("Debug logs enabled for \"" + context + "\" in hls.js version " + "1.5.12-0.canary.10366");
526
526
  } catch (e) {
527
527
  /* log fn threw an exception. All logger methods are no-ops. */
528
528
  return createLogger();
@@ -8107,7 +8107,7 @@
8107
8107
  // skip candidates which change codec-family or video-range,
8108
8108
  // and which decrease or increase frame-rate for up and down-switch respectfully
8109
8109
  if (currentCodecSet && levelInfo.codecSet !== currentCodecSet || currentVideoRange && levelInfo.videoRange !== currentVideoRange || upSwitch && currentFrameRate > levelInfo.frameRate || !upSwitch && currentFrameRate > 0 && currentFrameRate < levelInfo.frameRate || levelInfo.supportedResult && !((_levelInfo$supportedR = levelInfo.supportedResult.decodingInfoResults) != null && _levelInfo$supportedR[0].smooth)) {
8110
- if (firstSelection && i !== minStartIndex) {
8110
+ if (!firstSelection || i !== minStartIndex) {
8111
8111
  levelsSkipped.push(i);
8112
8112
  return 0; // continue
8113
8113
  }
@@ -25490,9 +25490,9 @@
25490
25490
  *
25491
25491
  * @internal
25492
25492
  */
25493
- var isTokenField = function isTokenField(key) {
25493
+ function isTokenField(key) {
25494
25494
  return key === 'ot' || key === 'sf' || key === 'st';
25495
- };
25495
+ }
25496
25496
 
25497
25497
  /**
25498
25498
  * Checks if the given value is valid
@@ -25503,12 +25503,12 @@
25503
25503
  *
25504
25504
  * @internal
25505
25505
  */
25506
- var isValid = function isValid(value) {
25506
+ function isValid(value) {
25507
25507
  if (typeof value === 'number') {
25508
25508
  return isFiniteNumber(value);
25509
25509
  }
25510
25510
  return value != null && value !== '' && value !== false;
25511
- };
25511
+ }
25512
25512
 
25513
25513
  var toRounded = function toRounded(value) {
25514
25514
  return Math.round(value);
@@ -25652,8 +25652,9 @@
25652
25652
  if (options === void 0) {
25653
25653
  options = {};
25654
25654
  }
25655
+ var result = {};
25655
25656
  if (!cmcd) {
25656
- return {};
25657
+ return result;
25657
25658
  }
25658
25659
  var entries = Object.entries(cmcd);
25659
25660
  var headerMap = Object.entries(CmcdHeaderMap).concat(Object.entries((options === null || options === void 0 ? void 0 : options.customHeaderMap) || {}));
@@ -25673,7 +25674,7 @@
25673
25674
  value = _ref[1];
25674
25675
  acc[field] = encodeCmcd(value, options);
25675
25676
  return acc;
25676
- }, {});
25677
+ }, result);
25677
25678
  }
25678
25679
 
25679
25680
  /**
@@ -30677,7 +30678,7 @@
30677
30678
  * Get the video-dev/hls.js package version.
30678
30679
  */
30679
30680
  function get() {
30680
- return "1.5.12-0.canary.10363";
30681
+ return "1.5.12-0.canary.10366";
30681
30682
  }
30682
30683
  }, {
30683
30684
  key: "Events",