华为云会议 MEETING-链接入会:代码示例

时间:2024-04-26 18:44:37

代码示例

- (void)joinConfWithoutLogin:(id)sender {
//这里以从界面TextField上获取信息
    NSString *server_url = 服务器地址;
    NSString *port = 服务器端口;
    NSString *confId = 会议ID;
    NSString *enter_code = 会议密码;
    NSString *name = 入会姓名;
    NSString *open_mic = 麦克风开关 ? @"true" : @"false";
    NSString *open_camera = 摄像头开关 ? @"true" : @"false";
    NSString * nonceStr = 服务器接口获取的nonce;
    NSString *joinConfString = [NSString stringWithFormat:@"cloudlink://welinksoftclient/h5page?page=joinConfByLink&server_url=%@&port=%@&conf_id=%@&enter_code=%@&name=%@&open_mic=%@&open_camera=%@&nonce=%@", server_url, port, confId, enter_code, name, open_mic, open_camera, nonce];
    NSURL *joinConfUrl = [NSURL URLWithString:joinConfString];
    [[UIApplication sharedApplication] openURL:joinConfUrl options:@{} completionHandler:nil];
}

上述代码示例仅作为逻辑示例,不能直接使用。

support.huaweicloud.com/scheme-meeting/meeting_22_0906.html