|
|
@@ -143,7 +143,7 @@ PeerStats.prototype.addBitrate = function (bitrate) {
|
|
143
|
143
|
* Resets the bit rate for given <tt>ssrc</tt> that belong to the peer
|
|
144
|
144
|
* represented by this instance.
|
|
145
|
145
|
*/
|
|
146
|
|
-PeerStats.prototype.resetSsrcBitrate = function () {
|
|
|
146
|
+PeerStats.prototype.resetBitrate = function () {
|
|
147
|
147
|
this.bitrate.download = 0;
|
|
148
|
148
|
this.bitrate.upload = 0;
|
|
149
|
149
|
};
|
|
|
@@ -678,7 +678,7 @@ StatsCollector.prototype.processStatsReport = function () {
|
|
678
|
678
|
bitrateDownload += ssrcStats.bitrate.download;
|
|
679
|
679
|
bitrateUpload += ssrcStats.bitrate.upload;
|
|
680
|
680
|
|
|
681
|
|
- ssrcStats.resetSsrcBitrate();
|
|
|
681
|
+ ssrcStats.resetBitrate();
|
|
682
|
682
|
|
|
683
|
683
|
// collect resolutions
|
|
684
|
684
|
resolutions[ssrc] = ssrcStats.resolution;
|