|
您好!
c++ sdk里没看到有关会议(集群)的示例代码,看头文件描述写了下面代码,帮忙看一下是否正确
int CMLibBVCU::CreateMeeting(const QString &name){ if (m_session) { BVCU_Conf_BaseInfo sBaseInfo; memset(&sBaseInfo, 0x00, sizeof(sBaseInfo)); strcpy_s(sBaseInfo.szName, sizeof (sBaseInfo.szName), name.toStdString().c_str()); sBaseInfo.iMode = BVCU_CONF_MODE_SPEAK_DISCUSSIONGROUP | BVCU_CONF_MODE_JOIN_FREE | BVCU_CONF_MODE_APPLY_AUTOAGREE | BVCU_CONF_MODE_START_STOPADMIN | BVCU_CONF_MODE_RECORD_STOPADMIN;
BVCU_Command cmdInfo; memset(&cmdInfo, 0, sizeof(cmdInfo)); cmdInfo.iSize = sizeof(cmdInfo); cmdInfo.iMethod = BVCU_METHOD_QUERY; // 是否正确? cmdInfo.iSubMethod = BVCU_SUBMETHOD_CONF_CREATE; cmdInfo.OnEvent = cmd_OnEvent; return BVCU_SendCmd(m_session, &cmdInfo); } return BVCU_RESULT_E_FAILED;}
|
|