Creates a new Room, the primary construct for a LiveKit session.
list of participants that are actively speaking. when this changes a RoomEvent.ActiveSpeakersChanged event is fired
the current participant
room metadata
user assigned name, derived from JWT token
options of room
map of sid: RemoteParticipant
server assigned unique room id
Returns true if audio playback is enabled
disconnects the room, emits RoomEvent.Disconnected
retrieves a participant by identity
Browsers have different policies regarding audio playback. Most requiring some form of user interaction (click/tap/etc). In those cases, audio will be silent until a click/tap triggering one of the following
startAudio
getUserMedia
Switches all active device used in this room to the given device.
Note: setting AudioOutput is not supported on some browsers. See setSinkId
use videoinput
for camera track,
audioinput
for microphone track,
audiooutput
to set speaker for all incoming audio tracks
getLocalDevices abstracts navigator.mediaDevices.enumerateDevices.
In particular, it handles Chrome's unique behavior of creating default
devices. When encountered, it'll be removed from the list of devices.
The actual default device will be placed at top.
a list of available local devices
Generated using TypeDoc
In LiveKit, a room is the logical grouping for a list of participants. Participants in a room can publish tracks, and subscribe to others' tracks.
a Room fires RoomEvents.