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 withnullif the local participant was the active presenteronMeetingLeft— emitted on the local participant when the meeting is leftonParticipantLeft— emitted on remote participants when a participant leaves
Code Example:
meeting.leave()
Content copied to clipboard