Fixes push to talk.

This commit is contained in:
damencho 2016-02-09 10:29:50 -06:00
parent e81d3c02ad
commit dbed8c2976
2 changed files with 9 additions and 1 deletions

View File

@ -278,6 +278,13 @@ export default {
//accessing directly eventEmitter????
APP.UI.eventEmitter.emit(UIEvents.AUDIO_MUTED, mute);
},
/**
* Returns whether local audio is muted or not.
* @returns {boolean}
*/
isLocalAudioMuted() {
return this.audioMuted;
},
/**
* Simulates toolbar button click for audio mute. Used by shortcuts and API.
*/

View File

@ -75,7 +75,8 @@ var KeyboardShortcut = {
$(":focus").is("input[type=password]") ||
$(":focus").is("textarea"))) {
if(e.which === "T".charCodeAt(0)) {
APP.conference.muteAudio(true);
if(APP.conference.isLocalAudioMuted())
APP.conference.muteAudio(false);
}
}
};