主頁 > 服務(wù)與支持 > 開發(fā)平臺(tái) > 客戶端SDK參考 > iOS應(yīng)用集成 > 業(yè)務(wù)開發(fā) 鏈接入會(huì)
更新時(shí)間:2019-11-20
通過此鏈接可以拉起app并且匿名入會(huì)。
app已啟動(dòng)未登錄場(chǎng)景下,調(diào)用該鏈接會(huì)彈出主界面并且匿名入會(huì);app已啟動(dòng)已登錄場(chǎng)景下,調(diào)用該鏈接會(huì)彈出主界面并以當(dāng)前賬號(hào)入會(huì)。
//匿名入會(huì) - (void)joinConfWithoutLogin:(id)sender { //這里以從界面TextField上獲取信息 NSString *server_url = 服務(wù)器地址; NSString *port = 服務(wù)器端口; NSString *confId = 會(huì)議ID; NSString *enter_code = 會(huì)議enter_code; NSString *name = 入會(huì)姓名; NSString *open_mic = 麥克風(fēng)開關(guān) ? @"true" : @"false"; NSString *open_camera = 攝像頭開關(guān) ? @"true" : @"false"; NSString *joinConfString = [NSString stringWithFormat:@"cloudlink://welinksoftclient/h5page?page=joinTmpConfByLink&server_url=%@&port=%@&conf_id=%@&enter_code=%@&name=%@&open_mic=%@&open_camera=%@", server_url, port, confId, enter_code, name, open_mic, open_camera]; NSURL *joinConfUrl = [NSURL URLWithString:joinConfString]; if (@available(iOS 10.0, *)) { [[UIApplication sharedApplication] openURL:joinConfUrl options:@{} completionHandler:nil]; } else { [[UIApplication sharedApplication] openURL:joinConfUrl]; } }
上述代碼示例僅作為邏輯示例,不能直接使用。