From 632b56b0694ae5c3565b9e730b128cf8aefd6c6b Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Wed, 6 Jan 2016 17:25:53 -0600 Subject: [PATCH] Fixes audio mute issue --- conference.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/conference.js b/conference.js index 40d5211ad..60597fd4d 100644 --- a/conference.js +++ b/conference.js @@ -330,9 +330,13 @@ export default { const mute = track.isMuted(); if(track.isLocal()){ id = this.localId; - (track.getType() === "audio")? - APP.statistics.onAudioMute(mute) : + if(track.getType() === "audio") { + APP.statistics.onAudioMute(mute); + this.audioMuted = mute; + } else { APP.statistics.onVideoMute(mute); + this.videoMuted = mute; + } } else { id = track.getParticipantId(); } @@ -408,11 +412,9 @@ export default { APP.UI.addListener(UIEvents.AUDIO_MUTED, (muted) => { (muted)? localAudio.mute() : localAudio.unmute(); - this.audioMuted = muted; }); APP.UI.addListener(UIEvents.VIDEO_MUTED, (muted) => { (muted)? localVideo.mute() : localVideo.unmute(); - this.videoMuted = muted; }); if (!interfaceConfig.filmStripOnly) {