Browse Source

Fixes push to talk.

j8
damencho 9 years ago
parent
commit
dbed8c2976
2 changed files with 9 additions and 1 deletions
  1. 7
    0
      conference.js
  2. 2
    1
      modules/keyboardshortcut/keyboardshortcut.js

+ 7
- 0
conference.js View File

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

+ 2
- 1
modules/keyboardshortcut/keyboardshortcut.js View File

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

Loading…
Cancel
Save