From 6dcda9cda72937f8f2b0037aea167f999b394c95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5var=20Aamb=C3=B8=20Fosstveit?= Date: Fri, 16 Nov 2018 12:10:30 +0100 Subject: [PATCH] Hotkey m for muting/unmuting yourself --- app/lib/RoomClient.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/lib/RoomClient.js b/app/lib/RoomClient.js index fa283d7..b74a1ae 100644 --- a/app/lib/RoomClient.js +++ b/app/lib/RoomClient.js @@ -179,6 +179,13 @@ export default class RoomClient this.notify('Changed layout to filmstrip view.'); break; } + + case 'm': // Toggle microphone + { + this.toggleMic(); + this.notify('Muted/unmuted your microphone.'); + break; + } } } }); @@ -391,6 +398,16 @@ export default class RoomClient } } + toggleMic() + { + logger.debug('toggleMic()'); + + if (this._micProducer.locallyPaused) + this.unmuteMic(); + else + this.muteMic(); + } + muteMic() { logger.debug('muteMic()');