Fixes push to talk.
This commit is contained in:
parent
e81d3c02ad
commit
dbed8c2976
|
@ -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.
|
||||
*/
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue