onParticipantJoined

open fun onParticipantJoined(participant: Participant)

Called when a remote participant becomes visible to this device — either the server announced them or one of their streams arrived first and the SDK created them from it.

AI agents arrive here too. The local participant never does.

Attach a ParticipantEventListener from here: this always runs before that participant's first ParticipantEventListener.onStreamEnabled.

Parameters

participant

the participant, already present in Room.participants.