ParticipantEventListener Class - Android
Implementation
- You can implement all the methods of
ParticipantEventListener
abstract Class and add the listener toParticipant
class using theaddEventListener()
method ofParticipant
Class.
onStreamEnabled()
onStreamEnabled()
is a callback which gets triggered whenever a participant's video, audio or screen share stream is enabled.
Event callback parameters
- stream: Stream
onStreamDisabled()
onStreamDisabled()
is a callback which gets triggered whenever a participant's video, audio or screen share stream is disabled.
Event callback parameters
- stream: Stream
Example
- Kotlin
- Java
meeting!!.localParticipant.addEventListener(object : ParticipantEventListener() {
override fun onStreamEnabled(stream: Stream) {
//
}
override fun onStreamDisabled(stream: Stream) {
//
}
});
participant.addEventListener(new ParticipantEventListener() {
@Override
public void onStreamEnabled(Stream stream) {
//
}
@Override
public void onStreamDisabled(Stream stream) {
//
}
});
Got a Question? Ask us on discord