主頁(yè) > 服務(wù)與支持 > 開發(fā)平臺(tái) > 客戶端SDK參考 > Android UI SDK > 業(yè)務(wù)開發(fā) 創(chuàng)建即時(shí)會(huì)議(攜帶與會(huì)者)
更新時(shí)間:2019-11-20
創(chuàng)建會(huì)議功能會(huì)創(chuàng)建一個(gè)即時(shí)會(huì)議并立即加入會(huì)議,可以通過傳參指定創(chuàng)建音頻會(huì)議還是視頻會(huì)議,可以指定會(huì)議是否需要密碼。該接口可以攜帶與會(huì)者創(chuàng)會(huì),創(chuàng)會(huì)成功后其他與會(huì)者會(huì)收到呼叫消息。創(chuàng)建會(huì)議的前提是已完成初始化和登錄。
代碼示例:
String name = "hwyf"; //與會(huì)者賬號(hào) String number = "12345"; //與會(huì)者號(hào)碼 CLMParticipant member = new CLMParticipant(number,name); HashSet<CLMParticipant> members = new HashSet<>(1); members.add(member); CloudLinkSDK.getOpenApi().clmCreateMeetingWithMembers(subject,type,needPassword,members,this.completeHandler); |
處理返回結(jié)果。
private CLMCompleteHandler completeHandler = new CLMCompleteHandler() { @Override public void onCompleted(CLMResult result) { if (result.getCmd().equals(OpenApiConst.OPEN_EVENT_CREATE_MEETING_WITH_PARTICIPANTS)){ Log.i(TAG,"create meeting result" + result.getMessage()); if (result.getCode() != 0){ Log.e(TAG,"create meeting fail" + result.getMessage()); } } } } |