浏览代码

Merge pull request #218 from jitsi/local-audio-levels-reload

Fixes local audio levels after reload.
dev1
hristoterezov 9 年前
父节点
当前提交
b06ef678f0
共有 1 个文件被更改,包括 0 次插入10 次删除
  1. 0
    10
      modules/statistics/statistics.js

+ 0
- 10
modules/statistics/statistics.js 查看文件

@@ -207,22 +207,12 @@ Statistics.prototype.removeConnectionStatsListener = function (listener) {
207 207
 
208 208
 Statistics.prototype.dispose = function () {
209 209
     if(Statistics.audioLevelsEnabled) {
210
-        Statistics.stopAllLocalStats();
211 210
         this.stopRemoteStats();
212 211
         if(this.eventEmitter)
213 212
             this.eventEmitter.removeAllListeners();
214 213
     }
215 214
 };
216 215
 
217
-Statistics.stopAllLocalStats = function () {
218
-    if(!Statistics.audioLevelsEnabled)
219
-        return;
220
-
221
-    for(var i = 0; i < this.localStats.length; i++)
222
-        this.localStats[i].stop();
223
-    this.localStats = [];
224
-};
225
-
226 216
 Statistics.stopLocalStats = function (stream) {
227 217
     if(!Statistics.audioLevelsEnabled)
228 218
         return;

正在加载...
取消
保存