@flashphoner/websdk 2.0.268 → 2.0.271

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.
@@ -13315,7 +13315,7 @@ const StreamStatsCollector = function(description, id, mediaConnection, wsConnec
13315
13315
  let metrics = metricsString.split(",");
13316
13316
  metrics.forEach((metric) => {
13317
13317
  for (const key of Object.keys(report)) {
13318
- if (metric === key) {
13318
+ if (metric === key && report[key]) {
13319
13319
  currentHeaders = util.addFieldToCsvString(currentHeaders, report.type + "." + report.id + "." + metric, ",");
13320
13320
  break;
13321
13321
  }
@@ -13402,10 +13402,10 @@ const StreamStatsCollector = function(description, id, mediaConnection, wsConnec
13402
13402
  }
13403
13403
  }
13404
13404
  }
13405
- if (value === null) {
13406
- lostMetrics.push(descriptor);
13407
- } else {
13405
+ if (value) {
13408
13406
  metrics.push(value);
13407
+ } else {
13408
+ lostMetrics.push(descriptor);
13409
13409
  }
13410
13410
  });
13411
13411
  } else {
@@ -13648,6 +13648,7 @@ const addSlash = function(value) {
13648
13648
  module.exports = {
13649
13649
  StreamStatsCollector: StreamStatsCollector
13650
13650
  }
13651
+
13651
13652
  },{"./util":46}],45:[function(require,module,exports){
13652
13653
  'use strict';
13653
13654