Expand description
Voice commands (specification §8.12, “Voice channels”).
Media never travels through the host. Participants connect to each other with WebRTC (a
mesh of at most mesh_max), and the host only:
- decides who may be in which voice channel (
CONNECT,SPEAK, the moderation bits, timeouts, lockdown,user_limit); - relays
voice.signal(SDP and ICE) andvoice.keys(media keys wrapped for one participant) to the one participant they name, live and never stored; - tells clients its ICE servers and whether direct paths are allowed (
IcePolicy).
Key packages and wrapped keys are opaque here: their format and cryptography are the
media layer’s (crypto::voice).
Structs§
- Join
voice.join: enter a voice channel (leaving any other one).- Joined
- The
voice.joinresponse. - KeyFor
- One entry of
voice.keys. - Keys
voice.keys: the sender’s media key forepoch, wrapped for each other participant. A whole mesh always fits in one command, so an epoch is never split.- Leave
voice.leave: leave the voice channel the member is in.- Moderate
voice.moderate: server mute or deafen, move or disconnect another member.- Signal
voice.signal: WebRTC signalling for one other participant of the same channel.- Update
voice.update: the member’s own mute and deafen.