Help Center/ Meeting/ Client SDK Reference/ Windows SDK/ API Reference/ Meeting Management/ Modifying Cloud Meeting Room Information
Updated on 2023-03-23 GMT+08:00

Modifying Cloud Meeting Room Information

ChangeVmrInfo

API Description

This API is used to modify cloud meeting room information.

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.
  3. All parameters are mandatory. Before calling this API, you need to obtain the cloud meeting room list. For parameters that do not need to be changed, use the values returned by the API for obtaining the cloud meeting room list.

Method Definition

1
HWM_SDK_AGENT_API hwmsdk::HwmErrCode ChangeVmrInfo(const ChangeVmrInfoParam *param);

Callback Function

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

Parameter Description

Parameter

Mandatory

Type

Description

vmrId

Yes

char[]

Unique cloud meeting room ID.

vmrName

Yes

char[]

Cloud meeting room name.

chairPwd

Yes

char[]

Host password of the cloud meeting room.

guestPwd

Yes

char[]

Guest password of the cloud meeting room.

allowGuestStartConf

No

bool

Whether to allow guests to join the meeting ahead of the host.

joinConfRestrictionType

No

HwmJoinConfPermissionType

Users who are allowed to join the meeting.

isOpenWaitingRoom

No

bool

Waiting room status.

Table 1 Return values

Type

Description

HwmErrCode

If 0 is returned, the operation is successful. If other values are returned, the operation fails. For details about values returned upon failures, see Common Error Codes.

Sample Code

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
/**
* Modify cloud meeting room information.
*/
int demoCreateConfWithAttendeeDlg::onClickEditVmrSubmit()
{
    hwmsdkagent::ChangeVmrInfoParam infoParam = {0};
    string name = CTools::UNICODE2UTF(CString("My site"));
    string chairPwd = CTools::UNICODE2UTF(CString("807766"));
    string guestPwd = CTools::UNICODE2UTF(CString("807755"));
    strcpy_s(infoParam.vmrName, sizeof(infoParam.vmrName), name.c_str());
    strcpy_s(infoParam.chairPwd, sizeof(infoParam.chairPwd), chairPwd.c_str());
    strcpy_s(infoParam.guestPwd, sizeof(infoParam.guestPwd), guestPwd .c_str());
    return hwmsdkagent::ChangeVmrInfo(&infoParam);
}