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

Editing a Recurring Meeting

ModifySubCycleConf

API Description

This API is used to edit a recurring meeting.

Precautions

  1. Call this API after login.
  2. This API is an asynchronous API. The return value only indicates whether the API is successfully called. The actual service processing result is returned in the corresponding callback function.

Method Definition

1
HWM_SDK_AGENT_API hwmsdk::HwmErrCode ModifySubCycleConf(const HwmModifySubCycleConfParam *modifySubCycleConfParam);

Callback Function

1
virtual void OnModifySubCycleConfResult(hwmsdk::HwmErrCode ret, const char* reason) {};

Parameter Description

Table 1 HwmModifySubCycleConfParam parameters

Parameter

Mandatory

Type

Description

confId

Yes

char[]

Meeting ID.

subConfID

Yes

char[]

UUID of a recurring meeting.

confMediaType

No

HwmConfMediaType

Meeting media type.

startTime

No

long long

Meeting start time (UTC time), in seconds.

confLen

No

unsigned int

Meeting duration, in minutes.

isAutoRecord

No

bool

Whether to automatically start recording after a meeting starts.

recordAuthType

No

unsigned int

Recording authentication mode. The options are as follows: 0: The recording can be viewed or downloaded through link (no nonce is added). 1: Corporate users can view or download the recording. 2: Participants can view or download the recording.

callInRestriction

No

HwmJoinConfPermissionType

Incoming call restriction.

allowGuestStartConf

No

bool

Whether to allow guests to start the meeting.

allowGuestStartConfTime

No

unsigned int

Time range for a guest to join a meeting in advance, in minutes. The options are as follows: 0: at any time; n: n minutes in advance.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
/**
* Edit a recurring meeting.
*/
int demoConfListDlg::ModifySubCycleConf()
{
    hwmsdkagent::HwmModifySubCycleConfParam SubCycleConfParam{};
    strcpy_s(SubCycleConfParam.confId, sizeof(SubCycleConfParam.confId), confId.c_str());
    strcpy_s(SubCycleConfParam.subConfID, sizeof(SubCycleConfParam.subConfID), subConfUuid.c_str());
 
    SubCycleConfParam.confMediaType = 1;
    SubCycleConfParam.startTime = 1633017600;
    SubCycleConfParam.confLen = 60;
    SubCycleConfParam.isAutoRecord = false;
    SubCycleConfParam.callInRestriction = 0;
    SubCycleConfParam.allowGuestStartConf = false;
    SubCycleConfParam.allowGuestStartConfTime = 0;
 
    return hwmsdkagent::ModifySubCycleConf(&SubCycleConfParam);
}