Hotkey m for muting/unmuting yourself
parent
a67a7aa8b3
commit
6dcda9cda7
|
|
@ -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()');
|
||||
|
|
|
|||
Loading…
Reference in New Issue