@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.
@@ -1,4 +1,4 @@
1
- Web SDK - 2.0.271
1
+ Web SDK - 2.0.272
2
2
 
3
3
  [Download builds](https://docs.flashphoner.com/display/WEBSDK2EN/Web+SDK+release+notes)
4
4
 
@@ -12293,6 +12293,9 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
12293
12293
  statCollector.metricsBatch = null;
12294
12294
  }
12295
12295
  },
12296
+ isMetricValid: function isMetricValid(value) {
12297
+ return value != null && value !== "" && value !== "undefined" && value !== "null";
12298
+ },
12296
12299
  collectMetrics: function () {
12297
12300
  var _collectMetrics = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8() {
12298
12301
  var stats, metrics, lostMetrics, headersUpdated;
@@ -12339,7 +12342,7 @@ var StreamStatsCollector = function StreamStatsCollector(description, id, mediaC
12339
12342
  _iterator2.f();
12340
12343
  }
12341
12344
  }
12342
- if (value) {
12345
+ if (statCollector.isMetricValid(value)) {
12343
12346
  metrics.push(value);
12344
12347
  } else {
12345
12348
  lostMetrics.push(descriptor);