Updated on 2024-12-27 GMT+08:00

Leaving a Meeting

Function

This API is used to leave a meeting. 1. Call this API only when you are in a meeting. 2. Calling this API will not end the meeting. You can join the meeting again when the meeting exists.

Function Prototype

leaveConf(onLeaveConfResult?: (ret: SDKERR, reason: string) => void): voidleaveConf(onLeaveConfResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
onLeaveConfResult Yes (ret: SDKERR, reason: string) => void Callback of leaving a meeting.

Return Values

void

Callback Method Parameters

(ret: SDKERR, reason: string) => void

Table 2 Input parameter description
Parameter Type Description
ret For details about SDKERR, see Error Code Reference. Error code.
reason string Error description.