@flashphoner/websdk 2.0.271 → 2.0.272

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.
@@ -11455,6 +11455,9 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
11455
11455
  statCollector.metricsBatch = null;
11456
11456
  }
11457
11457
  },
11458
+ isMetricValid: function isMetricValid(value) {
11459
+ return value != null && value !== "" && value !== "undefined" && value !== "null";
11460
+ },
11458
11461
  collectMetrics: function () {
11459
11462
  var _collectMetrics = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
11460
11463
  var stats, metrics, lostMetrics, headersUpdated;
@@ -11501,7 +11504,7 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
11501
11504
  _iterator2.f();
11502
11505
  }
11503
11506
  }
11504
- if (value) {
11507
+ if (statCollector.isMetricValid(value)) {
11505
11508
  metrics.push(value);
11506
11509
  } else {
11507
11510
  lostMetrics.push(descriptor);