leave method
void
leave()
Implementation
void leave() {
if (state != RTCSessionState.RTC_SESSION_GOING_TO_CLOSE &&
state != RTCSessionState.RTC_SESSION_CLOSED) {
setState(RTCSessionState.RTC_SESSION_GOING_TO_CLOSE);
_signaler.setJanusResponseEventCallback(null);
_signaler.stopAutoSendPresence();
_leaveSession();
disposeSession();
} else {
logTime(
"Trying to leave from room, while session has been already closed",
_TAG);
}
}