更新时间:2019-11-20
使用该接口可以创建即时会议并且携带与会者信息。
/** * 创会结果回调 */ afx_msg LRESULT CHello_WorldDlg::createMeetingWithParticipantsCallBack(WPARAM wParam, LPARAM lParam) { if (wParam != PLUGIN_STATUS_SUCCESS) { //在此处增加失败处理逻辑 } else { //在此处增加成功处理逻辑 } return 0L; } |
int demoCreatMeetingDlg::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; } |
上述代码示例仅作为逻辑示例,不能直接使用。
该接口为异步接口,参数中设置的回调接口callbackFunc为该接口结果的回调接口。