Hotkey m for muting/unmuting yourself

master
Håvar Aambø Fosstveit 2018-11-16 12:10:30 +01:00
parent a67a7aa8b3
commit 6dcda9cda7
1 changed files with 17 additions and 0 deletions

View File

@ -179,6 +179,13 @@ export default class RoomClient
this.notify('Changed layout to filmstrip view.'); this.notify('Changed layout to filmstrip view.');
break; 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() muteMic()
{ {
logger.debug('muteMic()'); logger.debug('muteMic()');