leave

fun leave()

This method can be used to leave the meeting.

After leaving, the local participant will receive onMeetingLeft and remote participants will receive onParticipantLeft.

Events:

  • onStreamDisabled — emitted on the local participant for each active stream (mic, webcam, screen share)
  • onPresenterChanged — emitted with null if the local participant was the active presenter
  • onMeetingLeft — emitted on the local participant when the meeting is left
  • onParticipantLeft — emitted on remote participants when a participant leaves

Code Example:


meeting.leave()