Просмотр исходного кода

cleanup: Renames a confusingly named function.

dev1
Boris Grozev 9 лет назад
Родитель
Сommit
a601ec1e4a
1 измененных файлов: 4 добавлений и 5 удалений
  1. 4
    5
      modules/statistics/RTPStatsCollector.js

+ 4
- 5
modules/statistics/RTPStatsCollector.js Просмотреть файл

@@ -122,11 +122,10 @@ PeerStats.prototype.setLoss = function (loss) {
122 122
 };
123 123
 
124 124
 /**
125
- * Sets resolution that belong to the ssrc
126
- * represented by this instance.
125
+ * Sets resolution that belong to the ssrc represented by this instance.
127 126
  * @param resolution new resolution value to be set.
128 127
  */
129
-PeerStats.prototype.setSsrcResolution = function (resolution) {
128
+PeerStats.prototype.setResolution = function (resolution) {
130 129
     this.resolution = resolution || {};
131 130
 };
132 131
 
@@ -648,9 +647,9 @@ StatsCollector.prototype.processStatsReport = function () {
648 647
         catch(e){/*not supported*/}
649 648
 
650 649
         if (resolution.height && resolution.width) {
651
-            ssrcStats.setSsrcResolution(resolution);
650
+            ssrcStats.setResolution(resolution);
652 651
         } else {
653
-            ssrcStats.setSsrcResolution(null);
652
+            ssrcStats.setResolution(null);
654 653
         }
655 654
     }
656 655
 

Загрузка…
Отмена
Сохранить