@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.
@@ -12027,6 +12027,9 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
12027
12027
  statCollector.metricsBatch = null;
12028
12028
  }
12029
12029
  },
12030
+ isMetricValid: function isMetricValid(value) {
12031
+ return value != null && value !== "" && value !== "undefined" && value !== "null";
12032
+ },
12030
12033
  collectMetrics: function () {
12031
12034
  var _collectMetrics = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
12032
12035
  var stats, metrics, lostMetrics, headersUpdated;
@@ -12073,7 +12076,7 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
12073
12076
  _iterator2.f();
12074
12077
  }
12075
12078
  }
12076
- if (value) {
12079
+ if (statCollector.isMetricValid(value)) {
12077
12080
  metrics.push(value);
12078
12081
  } else {
12079
12082
  lostMetrics.push(descriptor);