Updated on 2024-09-13 GMT+08:00

Editing a Meeting

API Description

This API is used to edit a meeting.

Precautions

  • Call this API before a meeting starts. If the meeting is already in progress, calling this API is invalid.
  • All fields are mandatory. Specify the fields to be edited as required, and assign values in the meeting details to remaining fields.

Method Definition

1
2
3
4
5
6
    /**
     * Edits a meeting.
     * @param editConfParam Indicates the editConfParam object.
     * @param hwmCallback Indicates the result callback.
     */
   void editConf(EditConfParam editConfParam, HwmCallback<Integer> hwmCallback);

Parameter Description

Table 1 EditConfParam description

Parameter

Mandatory

Type

Description

confId

Yes

String

Meeting ID.

isLiveOn

No

boolean

Whether live broadcast is enabled for the meeting.

customInfo

No

String

User-defined data on the device side. The server is unaware of the data.

autoMuteMode

No

AutoMuteType

Whether to automatically mute personal client users when they join the meeting.

hardTerminalAutoMuteMode

No

AutoMuteType

Whether to automatically mute meeting room device users when they join the meeting.

For details on other parameters, see Parameter Description.

Sample Code

EditConfParam editConfParam = new EditConfParam()
		.setConfId(this.confDetailModel.getConfId())
		.setVmrIdFlag(1 == this.confDetailModel.getVmrFlag())
		.setVmrId(this.confDetailModel.getVmrId())
		.setConfSubject(getSubject())
		.setStartTime(1599574798)
		.setTimeZone(56)
		.setDuration(60)
		.setConfType(MeetingType.CONF_VIDEO)
		.setNeedConfPwd(!this.confDetailModel.getIsGuestFreePwd())
		.setJoinConfRestrictionType(JoinConfPermissionType.PERMIT_EVERYONE)
		.setRecordOn(true)
		.setMailOn(true)
		.setSmsOn(true)
		.setEmailCalenderOn(true)
		.setAttendees(attendeeInfos);
HWMBizSdk.getBizOpenApi().editConf(editConfParam, new HwmCallback<Integer>() {
	@Override
	public void onSuccess(Integer integer) {
		dismissLoading();
  DemoUtil.showToast("Meeting edited:" + integer);
	}

	@Override
	public void onFailed(int retCode, String desc) {
		dismissLoading();
		String err = ErrorMessageFactory.create(Utils.getApp(), retCode);
		if (TextUtils.isEmpty(err)) {
			err = Utils.getApp().getString(R.string.hwmconf_edit_failed);
		}
  DemoUtil.showToast("Failed to edit the meeting: " + retCode +", desc: "+ err);
	}
});