更新時間:2019-11-20
描述
用戶創(chuàng)建預約會議。
前提條件
業(yè)務流程
//c code TSDK_RESULT ret; ret = tsdk_book_conference(bookConfInfo); if (TSDK_SUCCESS != ret) { LOG_D_CALL_ERROR("book conf failed. result=%#x", ret); return -1; } return TSDK_SUCCESS; |
如果會議成功預約,其他用戶可以通過“查詢會議列表”或其他第三方方式獲取該會議的信息:
//c code case TSDK_E_CONF_EVT_BOOK_CONF_RESULT: { LOG_D_CALL_INFO("book conf result"); break; } |
注意事項
無。
描述
用戶創(chuàng)建立即會議。
立即會議創(chuàng)建成功后,用戶的SIP號碼自動入會,用戶作為會議主席召集其他與會者加入會議。
前提條件:
業(yè)務流程
在創(chuàng)建即時會議時,會議方數(shù)(size)、會議類型(conf_type),媒體類型(conf_media_type)和與會者信息(attendee_num&attendee_list)必選,其他參數(shù)可選;
//c code TSDK_RESULT ret; ret = tsdk_book_conference(bookConfInfo); if (TSDK_SUCCESS != ret) { LOG_D_CALL_ERROR("book conf failed. result=%#x", ret); return -1; } return TSDK_SUCCESS; |
//c code case TSDK_E_CONF_EVT_BOOK_CONF_RESULT: { LOG_D_CALL_INFO("book conf result"); break; } |
//c code case TSDK_E_CONF_EVT_JOIN_CONF_RESULT: { if (TSDK_SUCCESS == param2) { CHECK_POINTER(data); TSDK_S_JOIN_CONF_IND_INFO* pResult = (TSDK_S_JOIN_CONF_IND_INFO*)data; TSDK_S_JOIN_CONF_IND_INFO* notifyInfo = new TSDK_S_JOIN_CONF_IND_INF memset(notifyInfo, 0, sizeof(TSDK_S_JOIN_CONF_IND_INFO)); memcpy_s(notifyInfo, sizeof(TSDK_S_JOIN_CONF_IND_INFO), pResult, sizeof(TSDK_S_JOIN_CONF_IND_INFO)); ::PostMessage(maindlg->GetSafeHwnd(), WM_CONF_CTRL_JOIN_RESULT, (WPARAM)notifyInfo, (LPARAM)param1); } else { maindlg->MessageBox(_T("join conf failed!")); } break; } |
代碼示例詳見“更新會議狀態(tài)信息和與會者列表”描述。
//c code case TSDK_E_CONF_EVT_GET_DATACONF_PARAM_RESULT: { if (TSDK_SUCCESS != param2) { maindlg->MessageBox(_T("get data conf param failed!")); } else { ::PostMessage(maindlg->GetSafeHwnd(), WM_CONF_CTRL_GET_DATA_CONF_PARAM, (WPARAM)param1, NULL); } break; } |
//c code TSDK_RESULT ret; ret = tsdk_join_data_conference(confHandle); if (TSDK_SUCCESS != ret) { LOG_D_CALL_ERROR("join data conf failed. result=%#x", ret); return -1; } return TSDK_SUCCESS; |
在加入數(shù)據(jù)會議后,會向UI上報會議信息及狀態(tài)更新事件TSDK_E_CONF_EVT_INFO_AND_STATUS_UPDATE,UI刷新會議成員列表和會議信息。
//c code TSDK_RESULT ret; ret = tsdk_join_data_conference(confHandle); if (TSDK_SUCCESS != ret) { LOG_D_CALL_ERROR("join data conf failed. result=%#x", ret); return -1; } return TSDK_SUCCESS; |
注意事項
無。
描述
用戶查詢自己“創(chuàng)建”的和“待參加”的預約會議信息。
前提條件:
業(yè)務流程
1、會議權限(conf_right)用于指定要查詢的會議權限類型,包含查詢創(chuàng)建的會議、待參加的會議或創(chuàng)建和待參加的會議,可選填;
2、請求會議列表頁索引(page_index),取值從1開始,建議與應用程序與會議列表的頁簽對應,必須要有明確值;
3、會議列表每頁的會議個數(shù)(page_size),建議與應用程序會議列表個數(shù)相同,必須要有明確值。
4、返回來的時間為UTC時間,UI進行頁面呈現(xiàn)之前需要將UTC時間轉(zhuǎn)換為本地時間。
//c code TSDK_RESULT ret; ret = tsdk_query_conference_list(arg); if (TSDK_SUCCESS != ret) { LOG_D_CALL_ERROR("get conf list failed. result=%#x", ret); return -1; } return TSDK_SUCCESS; |
//c code case TSDK_E_CONF_EVT_QUERY_CONF_LIST_RESULT: { if (TSDK_SUCCESS == param1) { CHECK_POINTER(data); TSDK_S_CONF_LIST_INFO* pResult = (TSDK_S_CONF_LIST_INFO*)data; TSDK_UINT32 currentConfNum = pResult->current_count; if (currentConfNum > 0) { TSDK_S_CONF_BASE_INFO* notifyInfo = new TSDK_S_CONF_BASE_INFO[currentConfNum]; memset(notifyInfo, 0, sizeof(TSDK_S_CONF_BASE_INFO)*currentConfNum); for (unsigned int i = 0; i < currentConfNum; i++) { notifyInfo[i].size = pResult->conf_info_list[i].size; strncpy_s(notifyInfo[i].conf_id, TSDK_D_MAX_CONF_ID_LEN + 1, pResult->conf_info_list[i].conf_id, _TRUNCATE); strncpy_s(notifyInfo[i].subject, TSDK_D_MAX_SUBJECT_LEN + 1, pResult->conf_info_list[i].subject, _TRUNCATE); strncpy_s(notifyInfo[i].access_number, TSDK_D_MAX_NUMBER_LEN + 1, pResult->conf_info_list[i].access_number, _TRUNCATE); strncpy_s(notifyInfo[i].chairman_pwd, TSDK_D_MAX_CONF_PASSWORD_LEN + 1, pResult->conf_info_list[i].chairman_pwd, _TRUNCATE); strncpy_s(notifyInfo[i].guest_pwd, TSDK_D_MAX_CONF_PASSWORD_LEN + 1, pResult->conf_info_list[i].guest_pwd, _TRUNCATE); strncpy_s(notifyInfo[i].start_time, TSDK_D_MAX_TIME_FORMATE_LEN + 1, pResult->conf_info_list[i].start_time, _TRUNCATE); strncpy_s(notifyInfo[i].end_time, TSDK_D_MAX_TIME_FORMATE_LEN + 1, pResult->conf_info_list[i].end_time, _TRUNCATE); notifyInfo[i].conf_media_type = pResult->conf_info_list[i].conf_media_type; notifyInfo[i].conf_state = (TSDK_E_CONF_STATE)pResult->conf_info_list[i].conf_state; strncpy_s(notifyInfo[i].scheduser_account, TSDK_D_MAX_ACCOUNT_LEN + 1, pResult->conf_info_list[i].scheduser_account, _TRUNCATE); strncpy_s(notifyInfo[i].scheduser_name, TSDK_D_MAX_DISPLAY_NAME_LEN + 1, pResult->conf_info_list[i].scheduser_name, _TRUNCATE); } CDemoMeetingDlg* mettingDlg = maindlg->GetDemoMeetingDlg(); CHECK_POINTER(mettingDlg); ::PostMessage(mettingDlg->GetSafeHwnd(), WM_CONF_CTRL_GET_CONF_LIST_RESULT, (WPARAM)notifyInfo, (LPARAM)currentConfNum); } } else { maindlg->MessageBox(_T("get conf list failed!")); } break; } |
注意事項
無。
描述
用戶查詢指定會議的詳細信息。
前提條件:
業(yè)務流程
請求消息結(jié)構TSDK_S_QUERY_CONF_DETAIL_REQ中,
//c code TSDK_RESULT ret; ret = tsdk_query_conference_detail(arg); if (TSDK_SUCCESS != ret) { LOG_D_CALL_ERROR("query conference detail failed. result=%#x", ret); return -1; } return TSDK_SUCCESS; |
//c code case TSDK_E_CONF_EVT_QUERY_CONF_DETAIL_RESULT: { if (TSDK_SUCCESS == param1) { CHECK_POINTER(data); TSDK_S_CONF_DETAIL_INFO* pResult = (TSDK_S_CONF_DETAIL_INFO*)data; TSDK_S_CONF_DETAIL_INFO* notifyInfo = new TSDK_S_CONF_DETAIL_INFO; memset(notifyInfo, 0, sizeof(TSDK_S_CONF_DETAIL_INFO)); memcpy_s(notifyInfo, sizeof(TSDK_S_CONF_DETAIL_INFO), pResult, sizeof(TSDK_S_CONF_DETAIL_INFO)); CDemoMeetingDlg* mettingDlg = maindlg->GetDemoMeetingDlg(); CHECK_POINTER(mettingDlg); ::PostMessage(mettingDlg->GetSafeHwnd(), WM_CONF_CTRL_GET_CONF_INFO_RESULT, (WPARAM)notifyInfo, NULL); } else { maindlg->MessageBox(_T("get conf detail failed!")); } break; } |
注意事項
無。