|
创建会议命令返回的BVCU_Conf_BaseInfo.szID 是会议id对吧?帮忙看一下代码,看哪里参数不对
int CMLibBVCU::ApplyForJoinSpeakMeeting(const QString &userId){ if (m_session) {
BVCU_Command cmdInfo;
memset(&cmdInfo, 0, sizeof(cmdInfo));
cmdInfo.iSize = sizeof(cmdInfo);
cmdInfo.iMethod = BVCU_METHOD_CONTROL;
cmdInfo.iSubMethod = BVCU_SUBMETHOD_CONF_PARTICIPATOR_JOIN;
cmdInfo.OnEvent = cmd_OnEvent;
// BVCU_Conf_Participator_Info participator_info;
// memset(&participator_info, 0, sizeof (participator_info));
strcpy_s(cmdInfo.szTargetID, sizeof (cmdInfo.szTargetID), meetingId.toStdString().c_str()); // meetingId 创建会议命令返回的BVCU_Conf_BaseInfo.szId = "CONF_627B33BC"
// strcpy_s(participator_info.szID, sizeof (participator_info.szID), meetingId.toStdString().c_str());
cmdInfo.stMsgContent.pData = &participator_info; // participator_info 创建会议命令返回的 BVCU_Conf_Participator_Info,其中 szID = "CU_mfcDemo"
cmdInfo.stMsgContent.iDataCount = 1;
return BVCU_SendCmd(m_session, &cmdInfo);
}
return BVCU_RESULT_E_FAILED;
}
该函数调用(在开启会议成功之后)后,sdk返回 -65531
|
|