Participant
Summary
Participant base class for local and remote participants.Properties
identity
Participant's assigned identity (retrieved from the JWT token).
Type
string
isSpeaking
True if the participant is currently speaking
Type
boolean
isSpeakingLevel
The current audio level estimate of a speaker between 0 and 1.0, 1 being loudest,
0 being softest.
Remarks
This member is only updated when the order of loudest speakers changes.Type
number
lastSpokeAt
optional
Date when participant last spoke
Date when participant last spoke
Type
Date
metadata
optional
Participant's metadata.
Participant's metadata.
Type
string
name
optional
Participant's assigned display name (retrieved from the JWT token).
Participant's assigned display name (retrieved from the JWT token).
Type
string
permissions
optional
Participant's permissions.
Participant's permissions.
Type
ParticipantPermission
sid
Server assigned unique id
Type
string
Accessors
connectionQuality
Returns the current connection quality of the participant.
Type
ConnectionQuality
isCameraEnabled
True if the participant has enabled their camera.
Type
boolean
isLocal
Returns true if this instance is the local participant.
Type
boolean
isMicrophoneEnabled
True if the participant has enabled their microphone.
Type
boolean
isScreenShareEnabled
True if the participant is currently sharing their screen.
Type
boolean
joinedAt
Date when the participant joined the room.
Type
undefined
| Date
Methods
getTrack
Finds the first track that matches the source filter, for example, getting
the user's camera track with getTrack(Track.Source.Camera).
Signature
getTrack(source: Track.Source)
Name | Type | Description |
---|---|---|
source | Track.Source |
getTrackByName
Finds the first track that matches the track's name.
Signature
getTrackByName(name: string)
Name | Type | Description |
---|---|---|
name | string |
getTracks
Returns a list of all tracks published by the participant.
Signature
getTracks()
Returns
TrackPublication[]