华为云会议 MEETING-场景8:邮件链接入会:示例代码

时间:2024-10-28 14:49:59

示例代码

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
// 通过会议ID和Random加入会议
int demoJoinConfByRandomDlg::clickJoinConfByRandom()
{
    // 填写会议ID和密码映射值等;Random入会时,支持配置会场名称
    hwmsdkagent::HwmJoinConfByRandomInfo data;
    memset(&data, 0, sizeof(hwmsdkagent::HwmJoinConfByRandomInfo));
 
    strncpy_s(data.confId, GetMeetingID().c_str(), HWM_MAX_CONF_ID_LEN);
    strncpy_s(data.random, GetAccessCode().c_str(), HWM_MAX_RANDOM_LEN);
    strncpy_s(data.name, GetParticipantName().c_str(), HWM_MAX_DISPLAY_NAME_LEN);
    
    int ret = hwmsdkagent::JoinConfByRandom(&data);
    return ret;
}
support.huaweicloud.com/sdkreference-meeting/win_demo_0012.html