更新时间:2025-06-30 GMT+08:00
分享

编辑会议

modifyConf

接口描述

该接口用于编辑未开始的预约会议。

注意事项

  1. 会议未开始前且自己是主持人才可以调用接口。
  2. 预约会议中携带的与会者在编辑会议时需要传入userUuid(会议详情中每个与会者带有该参数)。
  3. 推荐所有字段均填,编辑修改的字段可来源于用户输入,其他不想修改的属性通过会议详情参数获取。

方法定义

1
modifyConf(modifyConfParam: HWMOpenModifyConfParamModel): Promise<HWMCommonResult>;

参数描述

参数

是否必须

类型

描述

modifyConfParam

HWMOpenModifyConfParamModel

编辑会议参数。

表1 HWMOpenModifyConfParamModel参数说明

参数

是否必须

类型

描述

confId

string

会议ID。

startTimeStamp

number

会议开始时间,UTC时间戳,精度秒。

confLen

number

会议时长,单位分钟,最小值15分钟,最大值1440分钟。

confCommonParam

HWMOpenConfCommonParamModel

会议基本信息。

isSendCalendarNotify

boolean

发送邮件日历开关。

allowGuestStartConf

boolean

是否允许来宾提前启动会议。

说明:

allowGuestStartConfTime

number

允许来宾提前入会时间范围(单位:分钟):

0 - 随时

x - 提前x分钟启动会议

说明:
  • 仅针对随机会议ID的会议生效。
  • 固定会议ID的会议,不支持设置提前入会时间。

openCustomPara

string

自定义扩展信息。

返回值

表2 HWMCommonResult参数说明

参数

类型

描述

result

SDKERR

接口调用结果,HWM_SDKERR_SUCCESS表示成功,详细请参考错误码参考

reasonDesc

string

错误描述。

示例代码

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* 编辑会议
*/
handleModifyConf() {
    const attendees: Array<HWMOpenAttendeeBaseInfoModel> = [{
      number: this.getNumber(),
      name: this.getName(),
      accountId: this.getAccountId(),
      isSelf: this.isSelf,
      thirdAccount: this.getThirdAccount(),
      userUuid: this.getUserUuid()
    }];
   const modifyConfParam: HWMOpenModifyConfParamModel = {
      confId: this.confId,
      startTime: this.confDetailInfo.baseInfo.startTime,
      confLen: this.confDetailInfo.durationMinutes,
      allowGuestStartConf: this.confDetailInfo.allowGuestStartConf,
      allowGuestStartConfTime: this.confDetailInfo.allowGuestStartConfTime,
      isSendCalendarNotify: this.confDetailInfo.isEmailCalenderOn,
      confCommonParam: {
        vmrId: this.confDetailInfo.vmrId,
        vmrIdType: this.confDetailInfo.vmrIdType,
        attendees: attendees,
        subject: this.subject,
        confAllowJoinUser: this.confAllowJoinUser,
        autoMuteMode: this.confDetailInfo.baseInfo.autoMuteMode,
        hardTerminalAutoMuteMode: this.confDetailInfo.baseInfo.hardTerminalAutoMuteMode,
        isSendSms: this.confDetailInfo.isSmsOn,
        confMediaType: this.confDetailInfo.baseInfo.mediaType,
        recordMode: this.confDetailInfo.recordMode,
        supportWatermark: this.isWatermarkOn,
        guestPwd: this.guestPwd,
        isGuestJoinConfWithoutPwd: StringUtils.isEmpty(this.guestPwd),
      }
    }
    UISDK.getConfMgrApi().modifyConf(modifyConfParam).then((res: HWMCommonResult) => {
      const message: string = res.result === SDKERR.HWM_SDKERR_SUCCESS ? '编辑会议成功' : '编辑会议失败' + res.result;
      console.log(message);
    })
}

相关文档