This represents display name of the agentParticipant.
This represents unique ID of the agentParticipant who joined the meeting.
This represents whether the participant is an agent.
This represents agentParticipant’s metadata provided while initializing the meeting
This indicates whether the agentParticipant’s microphone is currently enabled.
This represents the agentParticipant’s current mode.
This represents the current pin state of the agentParticipant.
This represents all media streams associated with the agentParticipant. Streams could be audio or video.
This indicates whether the agentParticipant’s webcam is currently enabled.
An array of objects containing the following metrics:
jitter – Represents variation in packet arrival time (stream instability).bitrate – The bitrate at which the audio stream is being transmitted.totalPackets – Total number of packets transmitted for the stream.packetsLost – Total number of packets lost during transmission.rtt – Round-trip time (in milliseconds) between the client and server.codec – Codec used for encoding the audio stream.network – Network type used for transmitting the stream.Info
If the
rttvalue exceeds 300ms, consider switching to a region closer to the user for improved performance. Learn more visit here.
An array of objects containing the following metrics:
jitter – Represents variation in packet arrival time (stream instability).bitrate – The bitrate at which the video stream is being transmitted.totalPackets – Total number of packets transmitted for the stream.packetsLost – Total number of packets lost during transmission.rtt – Round-trip time (in milliseconds) between the client and server.codec – Codec used for encoding the video stream.network – Network type used for transmitting the stream.limitation – Indicates any limitations affecting stream quality.size – Resolution or size information related to the stream.Info
If the
rttvalue exceeds 300ms, consider switching to a region closer to the user for improved performance. Learn more visit here.
Removes an event listener that was previously registered.
Event name to which you want to unsubscribe.
Callback function which was passed while subscribing to the event.
To view the complete list of available events and their details, refer to AgentParticipantEvent.
Registers an event listener.
Event name to which you want to subscribe.
A callback function that is executed when the specified event is emitted.
To view the complete list of available events and their details, refer to AgentParticipantEvent.
This method can be used to pin the agentParticipant’s camera, screen share, or both.
Every participant receives a pin-state-changed event when the pin state is updated.
Specifies which stream to pin.
Allowed values:
"SHARE_AND_CAM" – Pins both screen share and camera streams."CAM" – Pins only the camera stream."SHARE" – Pins only the screen-share stream.HTMLAudioElement that can be used to play incoming audio streams in the DOM.Optionaloptions: { type?: "audio" }Optionaltype?: "audio"Type: `"audio"
"audio" – Renders the agentParticipant's microphone audio stream.An HTMLAudioElement that plays the requested audio stream.
<div> element that internally manages the rendering of the agentParticipant’s video stream.Optionaloptions: {Optional configuration for rendering the stream.
OptionalcontainerStyle?: Partial<CSSStyleDeclaration>CSS styles applied to the outer container <div>.
OptionalmaxQuality?: "low" | "med" | "high" | "auto"Sets the preferred maximum quality for the rendered stream.
Allowed value:
"auto" – Automatically adapts quality based on network conditions (default)"high" – Highest available quality"med" – Medium quality"low" – Low quality for bandwidth-constrained scenariosOptionaltype?: "video"Specifies which stream to render.
Allowed value:
"video" – Camera video streamOptionalvideostyle?: Partial<CSSStyleDeclaration>CSS styles applied directly to the internal <video> element.
An HTMLDivElement containing the rendered video or screen-share stream.
This method can be used to unpin the agentParticipant’s camera, screen share, or both.
Every participant receives a pin-state-changed event when the pin state is updated.
Specifies which stream to unpin.
Allowed values:
"SHARE_AND_CAM" – Unpins both screen share and camera streams."CAM" – Unpins only the camera stream."SHARE" – Unpins only the screen-share stream.
This represents the agent ID of the agentParticipant.