|
|
@@ -117,7 +117,7 @@ function PeerStats() {
|
|
117
|
117
|
* Sets the "loss" object.
|
|
118
|
118
|
* @param loss the value to set.
|
|
119
|
119
|
*/
|
|
120
|
|
-PeerStats.prototype.setSsrcLoss = function (loss) {
|
|
|
120
|
+PeerStats.prototype.setLoss = function (loss) {
|
|
121
|
121
|
this.loss = loss || {};
|
|
122
|
122
|
};
|
|
123
|
123
|
|
|
|
@@ -591,7 +591,7 @@ StatsCollector.prototype.processStatsReport = function () {
|
|
591
|
591
|
var packetsLostBefore = getNonNegativeStat(before, 'packetsLost');
|
|
592
|
592
|
var packetsLostDiff = Math.max(0, packetsLostNow - packetsLostBefore);
|
|
593
|
593
|
|
|
594
|
|
- ssrcStats.setSsrcLoss({
|
|
|
594
|
+ ssrcStats.setLoss({
|
|
595
|
595
|
packetsTotal: packetsDiff + packetsLostDiff,
|
|
596
|
596
|
packetsLost: packetsLostDiff,
|
|
597
|
597
|
isDownloadStream: isDownloadStream
|