Hotkey m for muting/unmuting yourself
This commit is contained in:
@@ -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()');
|
||||||
|
|||||||
Reference in New Issue
Block a user