更新时间:2025-01-09 GMT+08:00
添加与会者
addAttendee
接口描述
该接口用于在会议中添加与会者。
方法定义
1 | addAttendee(addAttendeeList: Array<HWMOpenAttendeeBaseInfoModel>): Promise<HWMCommonResult>; |
参数描述
| 参数 | 是否必须 | 类型 | 描述 |
|---|---|---|---|
| addAttendeeList | 是 | Array<HWMOpenAttendeeBaseInfoModel> | 需要添加的与会者。 |
返回值
| 参数 | 类型 | 描述 |
|---|---|---|
| result | SDKERR | 接口调用结果,HWM_SDKERR_SUCCESS表示成功,详细请参考错误码参考。 |
| reasonDesc | string | 错误描述。 |
示例代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | /** * 添加与会人 */ handleAddAttendee() { const attendees: Array<HWMOpenAttendeeBaseInfoModel> = [{ number: this.getNumber(), name: this.getName(), accountId: this.getAccountId(), isSelf: this.isSelf, thirdAccount: this.getThirdAccount(), userUuid: this.getUserUuid() }]; UISDK.getConfCtrlApi().addAttendee(attendees).then((res: HWMCommonResult) => { const message: string = res.result === SDKERR.HWM_SDKERR_SUCCESS ? '添加与会者成功' : '添加与会者失败' + res.result; console.log(message); }) } |
父主题: 会议控制