主頁 > 服務(wù)與支持 > 開發(fā)平臺(tái) > 客戶端SDK參考 > Windows UI SDK > 業(yè)務(wù)開發(fā) 創(chuàng)建即時(shí)會(huì)議(帶與會(huì)者參數(shù))
更新時(shí)間:2019-11-20
使用該接口可以創(chuàng)建即時(shí)會(huì)議并且攜帶與會(huì)者信息。
/** * 創(chuàng)會(huì)結(jié)果回調(diào) */ 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; //設(shè)置回調(diào)接口 data.callbackFunc = createMeetingWithParticipantsCallBack; int ret = clm_createMeetingWithParticipants(&data); return ret; } |
上述代碼示例僅作為邏輯示例,不能直接使用。
該接口為異步接口,參數(shù)中設(shè)置的回調(diào)接口callbackFunc為該接口結(jié)果的回調(diào)接口。