Fixes audio mute issue

This commit is contained in:
hristoterezov 2016-01-06 17:25:53 -06:00
parent 00e606663d
commit 632b56b069
1 changed files with 6 additions and 4 deletions

View File

@ -330,9 +330,13 @@ export default {
const mute = track.isMuted(); const mute = track.isMuted();
if(track.isLocal()){ if(track.isLocal()){
id = this.localId; id = this.localId;
(track.getType() === "audio")? if(track.getType() === "audio") {
APP.statistics.onAudioMute(mute) : APP.statistics.onAudioMute(mute);
this.audioMuted = mute;
} else {
APP.statistics.onVideoMute(mute); APP.statistics.onVideoMute(mute);
this.videoMuted = mute;
}
} else { } else {
id = track.getParticipantId(); id = track.getParticipantId();
} }
@ -408,11 +412,9 @@ export default {
APP.UI.addListener(UIEvents.AUDIO_MUTED, (muted) => { APP.UI.addListener(UIEvents.AUDIO_MUTED, (muted) => {
(muted)? localAudio.mute() : localAudio.unmute(); (muted)? localAudio.mute() : localAudio.unmute();
this.audioMuted = muted;
}); });
APP.UI.addListener(UIEvents.VIDEO_MUTED, (muted) => { APP.UI.addListener(UIEvents.VIDEO_MUTED, (muted) => {
(muted)? localVideo.mute() : localVideo.unmute(); (muted)? localVideo.mute() : localVideo.unmute();
this.videoMuted = muted;
}); });
if (!interfaceConfig.filmStripOnly) { if (!interfaceConfig.filmStripOnly) {