@flashphoner/sfusdk-examples 2.0.268 → 2.0.269

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flashphoner/sfusdk-examples",
3
- "version": "2.0.268",
3
+ "version": "2.0.269",
4
4
  "description": "Official Flashphoner WebCallServer SFU SDK usage examples",
5
5
  "main": "dist/sfu.js",
6
6
  "types": "src/sfu.ts",
@@ -189,9 +189,11 @@ const statsToTable = function(stats) {
189
189
  pStats.push(trackToTable(track, participant.nickName, "NA"));
190
190
  tracksOut++;
191
191
  bitrateOut += track.bitrate;
192
- firOut += track.feedbackStats.receivedFIR;
193
- pliOut += track.feedbackStats.receivedPLI;
194
- nackOut += track.feedbackStats.receivedNACK;
192
+ if (track.type === 'video' && track.feedbackStats) {
193
+ firOut += track.feedbackStats.receivedFIR;
194
+ pliOut += track.feedbackStats.receivedPLI;
195
+ nackOut += track.feedbackStats.receivedNACK;
196
+ }
195
197
  }
196
198
  });
197
199
  participant.incomingTracks.forEach(function(track) {