@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.
@@ -11465,6 +11465,9 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
11465
11465
  statCollector.metricsBatch = null;
11466
11466
  }
11467
11467
  },
11468
+ isMetricValid: function isMetricValid(value) {
11469
+ return value != null && value !== "" && value !== "undefined" && value !== "null";
11470
+ },
11468
11471
  collectMetrics: function () {
11469
11472
  var _collectMetrics = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
11470
11473
  var stats, metrics, lostMetrics, headersUpdated;
@@ -11511,7 +11514,7 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
11511
11514
  _iterator2.f();
11512
11515
  }
11513
11516
  }
11514
- if (value) {
11517
+ if (statCollector.isMetricValid(value)) {
11515
11518
  metrics.push(value);
11516
11519
  } else {
11517
11520
  lostMetrics.push(descriptor);