Skip to main content

ParticipantEventListener Class

using ParticipantEventListener Class

The ParticipantEventListener Class is responsible for listening to all the events that are related to Participant Class.

Listeners

  • __listeners

      Listeners
    • onStreamEnabled(_ stream: MediaStream, forParticipant participant: Participant)void

    • onStreamDisabled(_ stream: MediaStream, forParticipant participant: Participant)void

Example of onParticipantJoined()
extension MeetingViewController: ParticipantEventListener {
func onStreamEnabled(_ stream: MediaStream, forParticipant participant: Participant) {
// Display stream in UI view
}
}

Got a Question? Ask us on discord