|
@@ -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;
|