ParticipantEventListener Class
using ParticipantEventListener Class
The ParticipantEventListener Class
is responsible for listening to all the events that are related to Participant Class
.
Listeners
__listeners
onStreamEnabled(_ stream: MediaStream, forParticipant participant: Participant)
void
onStreamDisabled(_ stream: MediaStream, forParticipant participant: Participant)
void
Listeners
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