更新时间:2019-11-20
接口描述
该接口创建即时会议。
注意事项
无。
方法定义
int clm_createMeetingWithParticipants(plugin_create_meeting_with_participants_param *data) |
参数描述
参数 |
是否必须 |
类型 |
描述 |
---|---|---|---|
callbackFunc |
是 |
函数 |
接口结果回调函数。 |
meetingSubject |
是 |
char* |
会议主题。 |
meetingType |
是 |
unsigned int |
会议类型。 |
needPassword |
是 |
unsigned int |
是否需要会议接入码。
|
memberInfo |
否 |
struct meeting_participants_param |
与会者信息列表结构体。 |
参数 |
类型 |
描述 |
---|---|---|
member |
struct meeting_participants |
与会者信息结构体。 |
count |
unsigned int |
与会者个数。 |
参数 |
类型 |
描述 |
---|---|---|
name |
char* |
与会者名称。 |
number |
char* |
与会者号码。 |
返回值
类型 |
描述 |
---|---|
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; } |