午夜视频福利在线,欧美亚洲国产日韩,久久久综合结合狠狠狠97色,国产逼逼视频

智慧服務,成就美好體驗 項目咨詢

主頁 > 服務與支持 > 開發(fā)平臺 > 客戶端SDK參考 > Windows UI SDK > 接口參考 創(chuàng)建即時會議(帶與會者參數(shù))

入門使用

創(chuàng)建即時會議(帶與會者參數(shù))

更新時間:2019-11-20

clm_createMeetingWithParticipants

接口描述

該接口創(chuàng)建即時會議。

注意事項

無。

方法定義

int clm_createMeetingWithParticipants(plugin_create_meeting_with_participants_param *data)
 

參數(shù)描述

表1 結構體plugin_create_meeting_with_participants_param參數(shù)說明

參數(shù)

是否必須

類型

描述

callbackFunc

函數(shù)

接口結果回調(diào)函數(shù)。

meetingSubject

char*

會議主題。

meetingType

unsigned int

會議類型。

needPassword

unsigned int

是否需要會議接入碼。

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

memberInfo

struct meeting_participants_param

與會者信息列表結構體。

表2 結構體meeting_participants_param參數(shù)說明

參數(shù)

類型

描述

member

struct meeting_participants

與會者信息結構體。

count

unsigned int

與會者個數(shù)。

表3 結構體meeting_participants參數(shù)說明

參數(shù)

類型

描述

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;

	//設置回調(diào)接口
        data.callbackFunc = createMeetingWithParticipantsCallBack;
	int ret = clm_createMeetingWithParticipants(&data);
	return ret;
}