Skip to main content
Version: 0.1.x

ParticipantEventListener Class - Android

Implementation

  • You can implement all the methods of ParticipantEventListener abstract Class and add the listener to Participant class using the addEventListener() method of Participant Class.

onStreamEnabled()

  • onStreamEnabled() is a callback which gets triggered whenever a participant's video, audio or screen share stream is enabled.

Event callback parameters


onStreamDisabled()

  • onStreamDisabled() is a callback which gets triggered whenever a participant's video, audio or screen share stream is disabled.

Event callback parameters


Example

  meeting!!.localParticipant.addEventListener(object : ParticipantEventListener() {
override fun onStreamEnabled(stream: Stream) {
//
}

override fun onStreamDisabled(stream: Stream) {
//
}
});

Got a Question? Ask us on discord