Skip to main content
Version: 0.0.x

MeetingEventListener Class


implementation

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

Example

private final MeetingEventListener meetingEventListener = new MeetingEventListener() {
override fun onMeetingJoined() {
Log.d("#meeting", "onMeetingJoined()")
}
}

onMeetingJoined()

  • This event will be emitted when a localParticipant successfully joined the meeting.

Example

 override fun onMeetingJoined() {
Log.d("#meeting", "onMeetingJoined()")
}

onMeetingLeft()

Example

 override fun onMeetingLeft() {
Log.d("#meeting", "onMeetingLeft()")
}

onParticipantJoined()

  • This event will be emitted when a new participant joined the meeting.

Event callback parameters

Example

 override fun onParticipantJoined(participant: Participant) {
Log.d("#meeting", participant.displayName + " joined");
}

onParticipantLeft

  • This event will be emitted when a joined participant left the meeting.

Event callback parameters

Example

 override fun onParticipantLeft(participant: Participant) {
Log.d("#meeting", participant.displayName + " left");
}

onSpeakerChanged()

  • This event will be emitted when a active speaker changed.
  • If you want to know which participant is actively speaking, then this event will be used.
  • If no participant is actively speaking, then this event will pass null as en event callback parameter.

Event callback parameters

  • participantId: String

Example

 override fun onSpeakerChanged(participantId: String?) {
//
}

onPresenterChanged()

  • This event will be emitted when any participant starts or stops screen sharing.
  • It will pass participantId as an event callback parameter.
  • If a participant stops screensharing, then this event will pass null as en event callback parameter.

Event callback parameters

  • participantId: String

Example

 override fun onPresenterChanged(participantId: String) {
//
}

onEntryRequested()

  • This event will be emitted when a new participant who is trying to join the meeting, is having permission ask_join in token.
  • This event will only be emitted to the participants in the meeting, who is having the permission allow_join in token.
  • This event will pass following parameters as an event parameters, participantId and name of the new participant who is trying to join the meeting, allow() and deny() to take required actions.

Event callback parameters

  • peerId: String
  • name: String

Example

 override fun onEntryRequested(id: String?, name: String?) {
//
}

onEntryResponded()

  • This event will be emitted when the join() request is responded.
  • This event will be emitted to the participants in the meeting, who is having the permission allow_join in token.
  • This event will be also emitted to the participant who requested to join the meeting.

Event callback parameters

  • participantId: String
  • decision: "allowed" | "denied"

Example

 override fun onEntryResponded(id: String?, decision: String?) {
//
}

onWebcamRequested()

  • This event will be emitted to the participant B when any other participant A requests to enable webcam of participant B.
  • On accepting the request, webcam of participant B will be enabled.

Event callback parameters

  • participantId: String
  • listener: WebcamRequestListener { accept: Method; reject: Method }

Example

  override fun onWebcamRequested(participantId: String, listener: WebcamRequestListener) {
// if accept request
listener.accept()

// if reject request
listener.reject()
}

onMicRequested()

  • This event will be emitted to the participant B when any other participant A requests to enable mic of participant B.
  • On accepting the request, mic of participant B will be enabled.

Event callback parameters

  • participantId: String
  • listener: MicRequestListener { accept: Method; reject: Method }

Example

 override fun onMicRequested(participantId: String, listener: MicRequestListener) {
// if accept request
listener.accept()

// if reject request
listener.reject()
}

onRecordingStarted()

  • This event will be emitted when recording of the meeting is started.

Example

 override fun onRecordingStarted() {
//
}

onRecordingStopped()

  • This event will be emitted when recording of the meeting is stopped.

Example

 override fun onRecordingStopped() {
//
}

onLivestreamStarted()

  • This event will be emitted when RTMP live stream of the meeting is started.

Example

 override fun onLivestreamStarted() {
//
}

onLivestreamStopped()

  • This event will be emitted when RTMP live stream of the meeting is stopped.

Example

 override fun onLivestreamStopped() {
//
}

onExternalCallStarted()

  • This event will be emitted when local particpant receive incoming call.

Example

 override fun onExternalCallStarted() {
//
}