diff --git a/modules/RTC/LocalStream.js b/modules/RTC/LocalStream.js index 4fbe30401..4f13cce3c 100644 --- a/modules/RTC/LocalStream.js +++ b/modules/RTC/LocalStream.js @@ -81,7 +81,7 @@ LocalStream.prototype.setMute = function (mute) } else { if (mute) { APP.xmpp.removeStream(this.stream); - this.stream.stop(); + APP.RTC.stopMediaStream(this.stream); this.eventEmitter.emit(eventType, true); } else { var self = this;