useSpeaking
useSpeaking(
player):boolean
Whether player is speaking in the room’s voice: the page’s own player
while her microphone sends her voice, and another while the page plays
hers. It turns on with the first word and holds a moment past the last,
so a mark drawn from it does not flicker between words, as Discord’s
ring does. A player who controls nothing speaks too: her voice is hers,
not her character’s.
const speaking = useSpeaking(player);return speaking && <Icon name="mic" />;Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
player |
Entity | null | undefined |
Returns
Section titled “Returns”boolean