Voice
Viewers in a room can talk to each other. The devices in the room can play their voices.
On a viewer
- After the answer to your own offer, add the microphone as a
sendonlytransceiver. - Send
mute, then anofferwithtracks: [{ track_name: "microphone", mid }]. - To hear someone, send
subscribewithmicrophones: [viewer_id]. - When that viewer's
microphone_generationchanges inviewers, subscribe again.
A room takes 10 microphones (MAX_MICROPHONES_PER_ROOM). Past that, the offer gets the error MICROPHONE_LIMIT. Roll it back and only listen.
On a device
- Send your offer with
voices: true. - The worker sends an
offereach time the microphones in your rooms change. - Answer it within 10 seconds. If you do not, you play no voices until you publish again.

