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();
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) {