智慧服务,成就美好体验 项目咨询

主页 > 服务与支持 > 开发平台 > 客户端SDK参考 > Windows UI SDK > 接口参考 创建即时会议(带与会者参数)

入门使用

创建即时会议(带与会者参数)

更新时间:2019-11-20

clm_createMeetingWithParticipants

接口描述

该接口创建即时会议。

注意事项

无。

方法定义

int clm_createMeetingWithParticipants(plugin_create_meeting_with_participants_param *data)
 

参数描述

表1 结构体plugin_create_meeting_with_participants_param参数说明

参数

是否必须

类型

描述

callbackFunc

函数

接口结果回调函数。

meetingSubject

char*

会议主题。

meetingType

unsigned int

会议类型。

needPassword

unsigned int

是否需要会议接入码。

  • 0表示不需要
  • 1为需要

memberInfo

struct meeting_participants_param

与会者信息列表结构体。

表2 结构体meeting_participants_param参数说明

参数

类型

描述

member

struct meeting_participants

与会者信息结构体。

count

unsigned int

与会者个数。

表3 结构体meeting_participants参数说明

参数

类型

描述

name

char*

与会者名称。

number

char*

与会者号码。

返回值

表4 返回值

类型

描述

int

成功返回0,其他值表示失败。

代码示例

int demoCreatMeetingWithParticipants::clickCreatMeetingWithParticipants()
{
        struct plugin_create_meeting_with_participants_param data;
	memset(&data, 0, sizeof(plugin_create_meeting_with_participants_param));

        string meetingSubject= "subject";
        data.meetingSubject = (char*)meetingSubject.c_str();
        data.meetingType = CONF_MEDIATYPE_FLAG_VIDEO_DATA;
        data.needPassword = 0;
        meeting_participants participants;
        string name = "name";
        participants.name = (char*)name.c_str();
        string number = "number";
        participants.number = (char*)number.c_str();
	data.memberInfo.count = 1;
	data.memberInfo.member = participants;

	//设置回调接口
        data.callbackFunc = createMeetingWithParticipantsCallBack;
	int ret = clm_createMeetingWithParticipants(&data);
	return ret;
}