Agent Participant
Represents an agent participant in a Meeting.
An AgentParticipant is an AI-driven participant (for example, a voice agent) that joins the meeting alongside human participants. It adds agent-specific properties — agentId and agentState — while inheriting the standard participant APIs for stream events, pinning, removing, and stats.
Identifying agents: use isAgent (which returns true for AgentParticipant and false for regular participants) before downcasting.
Listening for agent-specific events: register a ParticipantEventListener via addEventListener and override onAgentStateChanged, onAgentTranscriptionReceived, and onAgentMetrics.
Code Example:
for (p in meeting.participants.values) {
if (p.isAgent) {
val agent = p as AgentParticipant
agent.addEventListener(object : ParticipantEventListener() {
override fun onAgentStateChanged(agentState: AgentState) {
// Update UI based on agent state (IDLE/LISTENING/THINKING/SPEAKING)
}
})
}
}
Content copied to clipboard
See also
Inherited properties
Functions
Inherited functions
Link copied to clipboard
This method can be used to register a ParticipantEventListener on this participant to receive callbacks for stream and state-change events.
Link copied to clipboard
This method can be used to get the audio statistics for this participant.
Link copied to clipboard
This method can be used to get the video statistics for this participant.
Link copied to clipboard
This method can be used to remove all registered ParticipantEventListeners from this participant.
Link copied to clipboard
This method can be used to unregister a previously added ParticipantEventListener.
Link copied to clipboard
This method can be used to set the viewport dimensions for adaptive video quality.