From 8cebbbb347bfe8e537239396d7f56096e6a5ca59 Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 30 Oct 2015 17:32:43 -0500 Subject: [PATCH] Stops the MediaStream using the utility method in RTC. --- modules/RTC/LocalStream.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;