华为云会议 MEETING-场景6:加入会议:示例代码

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

示例代码

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
/// 加入会议
- (void)joinMeeting {
    HWMJoinConfParam *param = [[HWMJoinConfParam alloc] init];
    param.confId = @"989156631";
    param.password = getPassword();
    param.nickname = @"杭州会场";
    param.isCameraOn = NO;
    param.isMicOn = YES;
    [[HWMSdk getOpenApi] joinConf:param callback:^(NSError * _Nullable error, id  _Nullable result) {
        if (error) {
            NSLog(@"入会失败%@", error.localizedDescription);
        } else {
            NSLog(@"入会成功");
        }
    }];
}

在未登录状态下调用该接口时,nickname参数必填。

support.huaweicloud.com/sdkreference-meeting/meeting_22_0163.html