Updated on 2024-07-30 GMT+08:00

Joining a Meeting Using a Random Code

Function

The meeting link (for example, https://bmeeting.huaweicloud.com/#/j/981924330/e11ddec62ee760734fcf2ba55b79937eac2aa68677caf659) in the notification email contains the meeting ID (981924330) and random code (e11ddec62ee760734fcf2ba55b79937eac2aa68677caf659). You can call this API to join the meeting.

Function Prototype

joinConfByRandom(joinConfByRandomInfo: JoinConfByRandomInfo, onJoinConfByRandomResult?: (ret: SDKERR, reason: string) => void): voidjoinConfByRandom(joinConfByRandomInfo: JoinConfByRandomInfo, onJoinConfByRandomResult?: (ret: SDKERR, reason: string) => void): void

Request Parameters

Table 1 Input parameter description
Parameter Mandatory Type Description
joinConfByRandomInfo Yes JoinConfByRandomInfo Information about joining a meeting using a random code.
onJoinConfByRandomResult Yes (ret: SDKERR, reason: string) => void Callback of joining the meeting using the random code.
Table 2 JoinConfByRandomInfo
Parameter Mandatory Type Description
confId Yes string Meeting ID.
random No string Mapping value of a 48-digit meeting password. The value comes from the end of the meeting link in the shared meeting details. If a meeting does not require a guest password, this parameter can be left blank.
nickName No 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.
domain No string Domain name.
isSpeakerOff No boolean Whether to disable the speaker. The options are true (yes) and false (no).
isMicOn No boolean Whether to enable the microphone. The options are true (yes) and false (no).
isCameraOn No boolean Whether to enable the camera. The options are true (yes) and false (no).

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.