onParticipantJoined

Called when a new remote participant joins the meeting.

Use this callback to set up ParticipantEventListeners on the new participant and render their media streams.

Code Example:


override fun onParticipantJoined(participant: Participant) {
    participant.addEventListener(object : ParticipantEventListener() {
        override fun onStreamEnabled(stream: Stream) {
            // Handle new stream
        }
    })
}

Parameters

participant

the Participant that joined

See also