Updated on 2023-03-23 GMT+08:00

Joining a Meeting

Function

This API is used to join an existing meeting by using the meeting ID and password. This API can be called regardless of whether you have logged in.

Function Prototype

joinConfById(joinConfByIdInfo: JoinConfByIdInfo, onJoinConfByIdResult?: (ret: SDKERR, reason: string) => void): voidjoinConfById(joinConfByIdInfo: JoinConfByIdInfo, onJoinConfByIdResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
joinConfByIdInfo Y JoinConfByIdInfo Information about joining a meeting using an ID.
onJoinConfByIdResult Y (ret: SDKERR, reason: string) => void Callback for joining the meeting using the meeting ID.
Table 2 JoinConfByIdInfo
Parameter Mandatory Type Description
confId Y string Meeting ID.
password N string Meeting password. If you want to join a meeting as a host, you must enter the host password. If you want to join a meeting as a guest, enter the guest password or leave the password empty as required.
nickName N string Display name in the meeting. If you have logged in, this parameter can be left blank. In such a case, the login username is used as the display name in the meeting. If you join the meeting anonymously, specify this parameter.
isSpeakerOff N boolean Whether to disable the speaker. The options are true (yes) and false (no).
isMicOn N boolean Whether to enable the microphone. The options are true (yes) and false (no).
isCameraOn N boolean Whether to enable the camera. The options are true (yes) and false (no).
isStopConflictConf N boolean Forcibly end a meeting that conflicts with the current cloud meeting room. (Only the owner of the cloud meeting room resource has the permission.)

Return Values

void

Callback Method Parameters

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

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