Updated on 2022-07-19 GMT+08:00

Joining a Meeting by Clicking a Link

Description

Users can start the Huawei Cloud Meeting app and join a meeting by clicking this link.

If the Huawei Cloud Meeting app is started and users have not logged in when they click the link, the home screen is displayed and they join the meeting anonymously. If the app is started and users have logged in when they click the link, the home screen is displayed and they join the meeting with their account names.

Service Process

  1. Create a scheme.
  2. Run the scheme.

Code Sample

- (void)joinConfWithoutLogin:(id)sender {
// The information can be obtained from TextField on the GUI.
    NSString *server_url = server address;
    NSString *port = server port;
    NSString *confId = meeting ID;
    NSString *enter_code = meeting password;
    NSString *name = Participant name displayed during the meeting;
    NSString *open_mic = microphone swtich ? @"true" : @"false";
    NSString *open_camera = camera switch ? @"true" : @"false";
    NSString * nonceStr = nonce obtained by calling a server API;
    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];
     if (@available(iOS 10.0, *)) {
        [[UIApplication sharedApplication] openURL:joinConfUrl options:@{} completionHandler:nil];
    } else {
        [[UIApplication sharedApplication] openURL:joinConfUrl];
    }
}

The preceding code is only a logical sample and cannot be directly used.