|
申请发言 BVCU_Command.szTargetID设置为CONF_ID,创建会议成功后返回的CONF_ID为 “CF_mfcdemo”,
但是命令返回失败 -65531
int CMLibBVCU::ApplyForSpeak(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_APPLYFOR_STARTSPEAK;
cmdInfo.OnEvent = cmd_OnEvent;
strcpy_s(cmdInfo.szTargetID, sizeof (cmdInfo.szTargetID), userId.toStdString().c_str());
return BVCU_SendCmd(m_session, &cmdInfo);
}
return BVCU_RESULT_E_FAILED;
}
|
|