更新时间:2019-11-20
描述
用户创建预约会议。
前提条件
业务流程
//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; } |
注意事项
无。
描述
用户创建立即会议。
立即会议创建成功后,用户的SIP号码自动入会,用户作为会议主席召集其他与会者加入会议。
前提条件:
业务流程
在创建即时会议时,会议方数(size)、会议类型(conf_type),媒体类型(conf_media_type)和与会者信息(attendee_num&attendee_list)必选,其他参数可选;
//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; } |
代码示例详见“更新会议状态信息和与会者列表”描述。
//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; |
在加入数据会议后,会向UI上报会议信息及状态更新事件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; |
注意事项
无。
描述
用户查询自己“创建”的和“待参加”的预约会议信息。
前提条件:
业务流程
1、会议权限(conf_right)用于指定要查询的会议权限类型,包含查询创建的会议、待参加的会议或创建和待参加的会议,可选填;
2、请求会议列表页索引(page_index),取值从1开始,建议与应用程序与会议列表的页签对应,必须要有明确值;
3、会议列表每页的会议个数(page_size),建议与应用程序会议列表个数相同,必须要有明确值。
4、返回来的时间为UTC时间,UI进行页面呈现之前需要将UTC时间转换为本地时间。
//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; } |
注意事项
无。
描述
用户查询指定会议的详细信息。
前提条件:
业务流程
请求消息结构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; } |
注意事项
无。