atmoky Engage Server SDK is now available! Check out the documentation to learn more.
API Reference
Classes
Participant

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
Type
Date

metadata

optional
Participant's metadata.
Type
string

name

optional
Participant's assigned display name (retrieved from the JWT token).
Type
string

permissions

optional
Participant's permissions.
Type
ParticipantPermission

sid

Server assigned unique id
Type
string

Accessors

connectionQuality

Returns the current connection quality of the participant.

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)
NameTypeDescription
sourceTrack.Source
Returns
undefined | TrackPublication

getTrackByName

Finds the first track that matches the track's name.
Signature
getTrackByName(name: string)
NameTypeDescription
namestring
Returns
undefined | TrackPublication

getTracks

Returns a list of all tracks published by the participant.
Signature
getTracks()

atmoky Logo

© 2024 atmoky, GmbH.
All rights reserved.

We use cookies to measure and improve your browsing experience, and serve personalized ads or content.