Updated on 2024-08-16 GMT+08:00

Joining a Meeting via a Link

Description

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

When the user touches the link, the app home screen is displayed. If the user has logged in, the user joins the meeting with the account name. Or, the user joins the meeting anonymously.

Service Process

  1. Build 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 = Name displayed in the meeting;
    NSString *open_mic = Microphone switch ? @"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];
    [[UIApplication sharedApplication] openURL:joinConfUrl options:@{} completionHandler:nil];
}

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