更新时间:2024-04-26 GMT+08:00
分享

链接入会

描述

通过此链接可以拉起华为云会议App并且加入会议。

App已启动未登录场景下,调用该链接会弹出主界面并且匿名入会;App已启动已登录场景下,调用该链接会弹出主界面并以当前账号入会。

业务流程

  1. 构建scheme。
  2. 执行scheme。

代码示例

- (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];
}

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

分享:

    相关文档

    相关产品