This represents the underlying Participant instance.
This represents display name of the agentParticipant.
This represents whether the agentParticipant is the active speaker.
This represents whether the agentParticipant's microphone is enabled.
This represents the microphone audio Stream of the agentParticipant.
This represents the current mode of the agentParticipant.
This represents the current pin state of the agentParticipant.
This represents whether the agentParticipant's webcam is enabled.
This represents the webcam video Stream of the agentParticipant.
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.
This method can be used to pin the agentParticipant's camera, screen share, or both.
Every participant receives a onPinStateChanged 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.This method can be used to unpin the agentParticipant's camera, screen share, or both.
Every participant receives a onPinStateChanged 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.Triggered when the state of the agentParticipant changes.
This represents the current state of the agentParticipant.
Possible values: AgentState
Triggered when a transcription is received from a participant or agent.
This represents the participant whose speech is transcribed. It can be either an AgentParticipant or a regular Participant, depending on who is speaking.
This represents the transcription segment.
This represents the transcribed text.
This represents the timestamp of the transcription.
Triggered when the media status of a agentParticipant changes (for example, when audio or video is enabled or disabled).
Type of stream whose status changed.
The updated status of the stream.
Triggered when a agentParticipant’s audio or video stream is disabled.
The Stream that was disabled.
Triggered when a agentParticipant’s audio or video stream is enabled.
The Stream that was enabled.
useAgentParticipantprovides reactive access to a agentParticipant's state, streams, controls, statistics, and related events within a meeting.