台湾一级a毛片在线播放,黄色精品偷拍视频大全,精品一区二区在线欧美日韩,日本特黄一级视频播三级片,日韩美女18岁美女视频,偷偷操不一样的99,国产午夜激无码av毛片久

智慧服務(wù),成就美好體驗 項目咨詢

主頁 > 服務(wù)與支持 > 開發(fā)平臺 > 客戶端SDK參考 > Android Native SDK > 接口參考 會議

入門使用

會議

更新時間:2019-12-10

TsdkConferenceManager(會議管理類)

接口名稱

接口描述

bookConference

預約會議。

queryConferenceList

獲取會議列表。

queryConferenceDetail

獲取會議詳細信息。

joinConference

主動加入會議。

joinConferenceByAnonymous

加入匿名會議。

p2pTransferToConference

兩方通話轉(zhuǎn)會議。

TsdkConference(會議信息類)

注意事項

  • 因需要多次使用當前會議對象,因此可以定義一個全局變量,方便調(diào)用。

    TsdkConference currentConference = null;

  • 賦值
    當前會議對象(currentConference )賦值有兩種:
    1. 自己創(chuàng)會,入會。需要在加入會議結(jié)果回調(diào)里面賦值。
    2. 被邀進入會議,可在會議來電回調(diào)里面賦值。

參數(shù)描述

變量名

類型

描述

Getter

Setter

handle

long

會議句柄

Y

Y

call

TsdkCall

TsdkCall對象

Y

Y

size

long

會議方數(shù)

Y

Y

confId

String

會議id

Y

Y

subject

String

會議主題

Y

Y

scheduserAccount

String

預訂者帳號

Y

Y

scheduserName

String

預訂者姓名

Y

Y

scheduserNumber

String

預訂者號碼

Y

Y

groupUri

String

群組uri

Y

Y

confState

TsdkConfState

會議狀態(tài)

Y

Y

confMediaType

TsdkConfMediaType

媒體類型

Y

Y

isHdConf

boolean

是否高清視頻會議

Y

Y

isLock

boolean

是否鎖定

Y

Y

isAllMute

boolean

是否全場靜音

Y

Y

isRecord

boolean

會議是否自動啟動錄制

Y

Y

confAttendeeUpdateType

TsdkConfAttendeeUpdateType

會議成員更新方式

Y

Y

attendeeList

List<TsdkAttendee>

與會者列表

Y

Y

self

TsdkAttendee

自己的信息

Y

Y

dataConfParam

TsdkConfDataconfParams

數(shù)據(jù)會議參數(shù)

Y

Y

svcConf

boolean

是否SVC會議

Y

Y

接口名稱

接口描述

acceptConference

接聽會議來電

rejectConference

拒接會議來電

leaveConference

離開會議

endConference

結(jié)束會議

upgradeConference

升級會議

muteConference

閉音會場

addAttendee

添加與會者

removeAttendee

刪除與會者

handupAttendee

掛斷與會者

redialAttendee

重撥與會者

muteAttendee

閉音與會者

setHandup

設(shè)置或取消舉手

setVideoMode

設(shè)置會議視頻模式

watchAttendee

觀看與會者畫面

broadcastAttendee

廣播與會者

requestChairman

申請主席權(quán)限

releaseChairman

釋放主席權(quán)限

joinDataConference

加入數(shù)據(jù)會議

attachSurfaceView

綁定視圖

setPresenter

設(shè)置主講人

sendChatMsg

發(fā)送聊天消息

setRecordBroadcast

設(shè)置錄播

setLiveBroadcast

設(shè)置直播

startScreenShare

開始共享

stopScreenShare

停止共享

startAnnotation

開始標注

stopAnnotation

停止標注

setAnnotationLocalStatus

設(shè)置本地標注狀態(tài)

setAnnotationPen

設(shè)置標注畫筆

eraseAnnotation

擦除標注

clearAnnotation

清除標注

setAsOwner

設(shè)置共享權(quán)限

getShareCodecInfo

獲取共享統(tǒng)計信息

bookConference

接口描述

預約會議(立即或延時召開)。

前提條件

  1. 鑒權(quán)登錄成功。
  2. 會議環(huán)境參數(shù)已設(shè)置。

注意事項

  • 當實際與會者數(shù)目多于設(shè)置的會議方數(shù)時服務(wù)會自動擴大會議方數(shù),當填寫方數(shù)小于3時,服務(wù)器默認會議方數(shù)為3。
  • 會議開始時間如果沒有指定,則表示會議馬上開始。
  • 服務(wù)器默認時間為UTC時間,在預約時需將預約時間轉(zhuǎn)換為UTC時間。
  • 如果創(chuàng)建的是立即會議,會議創(chuàng)建成功后,SDK會自動加入會議。

方法定義

public int bookConference(TsdkBookConfInfo bookConfInfo) 
 

參數(shù)描述

參數(shù)名

類型

描述

bookConfInfo

TsdkBookConfInfo

預約會議信息。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int bookConference(BookConferenceInfo bookConferenceInfo)
{
    Log.i(TAG, "bookConference.");
    if (bookConferenceInfo == null)
    {
        Log.e(TAG, "booKConferenceInfo obj is null");
        return -1;
    }
    TsdkBookConfInfo bookConfInfo = new TsdkBookConfInfo();
    if(bookConferenceInfo.isInstantConference()){
        bookConfInfo.setConfType(TsdkConfType.TSDK_E_CONF_INSTANT);
        bookConfInfo.setIsAutoProlong(1);
    }else {
        bookConfInfo.setConfType(TsdkConfType.TSDK_E_CONF_RESERVED);
    }
    bookConfInfo.setSubject(bookConferenceInfo.getSubject());
    bookConfInfo.setConfMediaType(bookConferenceInfo.getMediaType());
    bookConfInfo.setStartTime(bookConferenceInfo.getStartTime());
    bookConfInfo.setDuration(bookConferenceInfo.getDuration());
    bookConfInfo.setSize(bookConferenceInfo.getSize());
    List<TsdkAttendeeBaseInfo> attendeeList = ConfConvertUtil.memberListToAttendeeList(bookConferenceInfo.getMemberList());
    bookConfInfo.setAttendeeList(attendeeList);
    bookConfInfo.setAttendeeNum(attendeeList.size());
    //The other parameters are optional, using the default value
    //其他參數(shù)可選,使用默認值即可
    int result = TsdkManager.getInstance().getConferenceManager().bookConference(bookConfInfo);
    if (result != 0)
    {
        Log.e(TAG, "bookReservedConf result ->" + result);
        return  result;
    }
    return 0;
}
 

queryConferenceList

接口描述

獲取會議列表??梢垣@取用戶會議列表,包括用戶自己創(chuàng)建的會議,以及待參加的會議。

前提條件

  1. 鑒權(quán)登錄成功。
  2. 會議環(huán)境參數(shù)已設(shè)置。

注意事項

對應的回調(diào)函數(shù)為onEvtQueryConfListResult

方法定義

public int queryConferenceList(TsdkQueryConfListReq queryReq)
 

參數(shù)描述

參數(shù)名

類型

描述

queryReq

TsdkQueryConfListReq

獲取會議列表信息。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int queryMyConfList(ConfConstant.ConfRight myRight)
{
    Log.i(TAG, "query my conf list.");
    TsdkConfRight tupConfRight;
    switch (myRight)
    {
        case MY_CREATE:
            tupConfRight = TsdkConfRight.TSDK_E_CONF_RIGHT_CREATE;
            break;
        case MY_JOIN:
            tupConfRight = TsdkConfRight.TSDK_E_CONF_RIGHT_JOIN;
            break;
        case MY_CREATE_AND_JOIN:
            tupConfRight = TsdkConfRight.TSDK_E_CONF_RIGHT_CREATE_JOIN;
            break;
        default:
            tupConfRight = TsdkConfRight.TSDK_E_CONF_RIGHT_CREATE_JOIN;
            break;
    }
    TsdkQueryConfListReq queryReq = new TsdkQueryConfListReq();
    queryReq.setPageSize(ConfConstant.PAGE_SIZE);
    queryReq.setPageIndex(1);    //當前Demo只查詢一頁,實際可根據(jù)需要分多頁查詢
    queryReq.setIsIncludeEnd(0); //不包含已結(jié)束的會議
    queryReq.setConfRight(tupConfRight);
    int result = TsdkManager.getInstance().getConferenceManager().queryConferenceList(queryReq);
    if (result != 0)
    {
        Log.e(TAG, "getConfList result ->" + result);
        return  result;
    }
    return 0;
}
 

queryConferenceDetail

接口描述

獲取會議詳細信息。

前提條件

  1. 鑒權(quán)登錄成功。
  2. 會議環(huán)境參數(shù)已設(shè)置。

注意事項

對應的回調(diào)函數(shù)為onEvtQueryConfDetailResult。

方法定義

public int queryConferenceDetail(TsdkQueryConfDetailReq queryReq) 
 

參數(shù)描述

參數(shù)名

類型

描述

queryReq

TsdkQueryConfDetailReq

獲取會議詳細信息。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int queryConfDetail(String confID)
{
    Log.i(TAG,  "query conf detail");
    TsdkQueryConfDetailReq queryReq = new TsdkQueryConfDetailReq();
    queryReq.setConfId(confID);
    int result = TsdkManager.getInstance().getConferenceManager().queryConferenceDetail(queryReq);
    if (result != 0)
    {
        Log.e(TAG, "getConfInfo result ->" + result);
        return  result;
    }
    return result;
}
 

joinConference

接口描述

主動加入會議。

注意事項

對應的回調(diào)函數(shù)為onEvtJoinConfResult。

方法定義

public int joinConference(TsdkConfJoinParam confJoinParam, boolean isVideo, String joinNumber) 
 

參數(shù)描述

參數(shù)名

類型

描述

confJoinParam

TsdkConfJoinParam

入會參數(shù)。

isVideo

boolean

是否視頻接入會議。

joinNumber

String

入會號碼,最大長度127字節(jié)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int joinConf(TsdkConfJoinParam confJoinParam, boolean isVideo, String joinNumber)
{
    Log.i(TAG,  "join conf.");
    int result = TsdkManager.getInstance().getConferenceManager().joinConference(confJoinParam, isVideo, joinNumber);
    if (result != 0)
    {
        Log.e(TAG, "joinConf result ->" + result);
        currentConference = null;
        return result;
    }
    return 0;
}
 

joinConferenceByAnonymous

接口描述

加入匿名會議。

注意事項

對應的回調(diào)函數(shù)為onEvtJoinConfResult

方法定義

public int joinConferenceByAnonymous(TsdkConfAnonymousJoinParam anonymousParam)
 

參數(shù)描述

參數(shù)名

類型

描述

anonymousParam

TsdkConfAnonymousJoinParam

匿名入會參數(shù)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int joinConferenceByAnonymous(String confId, String confSubject,
                                     String confPassword, String serviceAddress,
                                     String servicePort)
{
    Log.e(TAG,  "joinConferenceByAnonymous");

    String localIpAddress = DeviceManager.getLocalIpAddress(false);
    TsdkLocalAddress localAddress = new TsdkLocalAddress(localIpAddress);
    TsdkManager.getInstance().setConfigParam(localAddress);

    TsdkConfAnonymousJoinParam anonymousParam = new TsdkConfAnonymousJoinParam();
    anonymousParam.setConfId(confId);
    anonymousParam.setConfPassword(confPassword);
    anonymousParam.setDisplayName(confSubject);
    anonymousParam.setServerAddr(serviceAddress);
    anonymousParam.setServerPort(Integer.valueOf(servicePort));
    anonymousParam.setUserId(1);

    int result = TsdkManager.getInstance().getConferenceManager().joinConferenceByAnonymous(anonymousParam);

    if (result != 0)
    {
        Log.e(TAG, "join anonymous conference result ->" + result);
        return result;
    }

    return 0;
}
 

p2pTransferToConference

接口描述

兩方通話轉(zhuǎn)會議。

注意事項

對應的回調(diào)函數(shù)為onEvtJoinConfResult

方法定義

public int p2pTransferToConference(TsdkBookConfInfo bookConfInfo, int callID)
 

參數(shù)描述

參數(shù)名

類型

描述

TsdkCall

tsdkCall

呼叫信息。

bookConfInfo

TsdkBookConfInfo

預約會議信息。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int callTransferToConference(int call_id){

    Log.i(TAG, "callTransferToConference.");

    Session callSession = CallMgr.getInstance().getCallSessionByCallID(call_id);
    if (callSession == null)
    {
        Log.e(TAG, "call Session is null.");
        return -1;
    }

    TsdkCallInfo callInfo =  callSession.getTsdkCall().getCallInfo();
    if (callInfo == null)
    {
        Log.e(TAG, "call is invalid.");
        return -1;
    }

    TsdkBookConfInfo bookConfInfo = new TsdkBookConfInfo();

    bookConfInfo.setConfType(TsdkConfType.TSDK_E_CONF_INSTANT);
    bookConfInfo.setIsAutoProlong(1);

    bookConfInfo.setSubject(LoginMgr.getInstance().getAccount() + "'s Meeting");
    if (1 == callInfo.getIsVideoCall()) {
        bookConfInfo.setConfMediaType(TSDK_E_CONF_MEDIA_VIDEO);
    }else {
        bookConfInfo.setConfMediaType(TSDK_E_CONF_MEDIA_VOICE);
    }

    bookConfInfo.setSize(2);

    List<TsdkAttendeeBaseInfo> attendeeList = new ArrayList<>();
    TsdkAttendeeBaseInfo confctrlAttendee = new TsdkAttendeeBaseInfo();
    //confctrlAttendee.setNumber(callInfo.getPeerNumber());
    confctrlAttendee.setRole(TsdkConfRole.TSDK_E_CONF_ROLE_ATTENDEE);
    attendeeList.add(confctrlAttendee);

    bookConfInfo.setAttendeeList(attendeeList);
    bookConfInfo.setAttendeeNum(attendeeList.size());

    //The other parameters are optional, using the default value
    //其他參數(shù)可選,使用默認值即可
    bookConfInfo.setLanguage(TsdkConfLanguage.TSDK_E_CONF_LANGUAGE_EN_US);

    int result = TsdkManager.getInstance().getConferenceManager().p2pTransferToConference(call_id, bookConfInfo);
    if (result != 0) {
        Log.e(TAG, "call transfer to conference is return failed, result = " + result);
    }
    return result;
}
 

acceptConference

接口描述

接聽會議來電。

注意事項

無。

方法定義

public int acceptConference(boolean isVideo)
 

參數(shù)描述

參數(shù)名

類型

描述

isVideo

boolean

是否接入視頻會議。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int acceptConf(boolean isVideo)
{
    Log.i(TAG,  "accept conf.");

    if (null == currentConference)
    {
        Log.i(TAG,  "accept conf, currentConference is null ");
        return 0;
    }

    int result = currentConference.acceptConference(isVideo);
    if (result == 0) {
        Log.i(TAG,  "accept conf");
    }

    return result;
}
 

rejectConference

接口描述

收到邀請加入會議的請求時,用戶可以通過調(diào)用此方法拒絕會議來電邀請。

注意事項

無。

方法定義

public int rejectConference() 
 

參數(shù)描述

無。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int rejectConf()
{
    Log.i(TAG,  "reject conf.");

    if (null == currentConference)
    {
        Log.i(TAG,  "reject conf, currentConference is null ");
        return 0;
    }

    int result = currentConference.rejectConference();
    if (result == 0) {
        currentConference = null;
    }

    return result;
}
 

leaveConference

接口描述

離開會議。

注意事項

對應的最終結(jié)果事件通知為onEvtInfoAndStatusUpdate。

方法定義

public int leaveConference()
 

參數(shù)描述

無。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int leaveConf()
{
    if (null == currentConference)
    {
        Log.i(TAG,  "leave conf, currentConference is null ");
        return 0;
    }

    int result = currentConference.leaveConference();
    if (result == 0) {
        currentConference = null;
    }

    return result;
}
 

endConference

接口描述

結(jié)束會議。

注意事項

回調(diào)事件:onEvtConfEndInd

方法定義

public int endConference()
 

參數(shù)描述

無。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int endConf()
{
    if (null == currentConference)
    {
        Log.i(TAG,  "end conf, currentConference is null ");
        return 0;
    }

    int result =  currentConference.endConference();
    if (result == 0) {
        currentConference = null;
    }

    return result;
}
 

upgradeConference

接口描述

此方法用于升級會議模式,包括語音會議升級為數(shù)據(jù)會議、視頻會議升級為數(shù)據(jù)會議。

前提條件

已創(chuàng)建待升級的會議。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法定義

public int upgradeConference(String groupUri) 
 

參數(shù)描述

參數(shù)名

類型

描述

groupUri

String

群組ID,最大長度127字節(jié)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int upgradeConf()
{
    if (null == currentConference)
    {
        Log.e(TAG,  "upgrade conf failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.upgradeConference("");

    return result;
}
 

muteConference

接口描述

設(shè)置或取消閉音會場。

前提條件

與會者通過主席身份加入會議。

注意事項

  • 設(shè)置會議閉音后,除主席外,其他所有與會者均不可說(只可聽)。
  • 對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult

方法定義

public int muteConference(boolean isMute)
 

參數(shù)描述

參數(shù)名

類型

描述

isMute

boolean

是否閉音。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int muteConf(boolean isMute)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "mute conf failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.muteConference(isMute);

    return result;
}
 

addAttendee

接口描述

會議主席添加新的與會者加入會議。

前提條件

與會者通過主席身份加入會議。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法定義

public int addAttendee(TsdkAddAttendeesInfo addAttendeeInfo) 
 

參數(shù)描述

參數(shù)名

類型

描述

addAttendeeInfo

TsdkAddAttendeesInfo

與會者信息。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int addAttendee(Member attendee)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "add attendee failed, currentConference is null ");
        return -1;
    }

    TsdkAttendeeBaseInfo attendeeBaseInfo = new TsdkAttendeeBaseInfo();
    attendeeBaseInfo.setNumber(attendee.getNumber());
    attendeeBaseInfo.setDisplayName(attendee.getDisplayName());
    attendeeBaseInfo.setAccountId(attendee.getAccountId());
    attendeeBaseInfo.setRole(attendee.getRole());

    List<TsdkAttendeeBaseInfo> attendeeList = new ArrayList<>();
    attendeeList.add(attendeeBaseInfo);

    TsdkAddAttendeesInfo addAttendeeInfo = new TsdkAddAttendeesInfo(attendeeList, attendeeList.size());

    int result =  currentConference.addAttendee(addAttendeeInfo);

    return result;
}
 

removeAttendee

接口描述

刪除與會者,包括踢出正在會議中的與會者、移除已離會的與會者和取消正在邀請的與會者。

前提條件

與會者通過主席身份加入會議。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法定義

public int removeAttendee(String attendee) 
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者信息,最大長度127字節(jié)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int removeAttendee(Member attendee)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "remove attendee failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.removeAttendee(attendee.getNumber());

    return result;
}
 

handupAttendee

接口描述

掛斷與會者。

前提條件

與會者通過主席身份加入會議。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法定義

public int handupAttendee(String attendee) 
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者信息,最大長度127字節(jié)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//java code
public int hangupAttendee(Member attendee)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "hangup attendee failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.handupAttendee(attendee.getNumber());

    return result;
}
 

redialAttendee

接口描述

重撥與會者。

主席會控,重新呼叫在與會者列表中處于離會狀態(tài)的與會者。

注意事項

無。

方法定義

public int redialAttendee(String attendee)
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者信息,最大長度127字節(jié)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//java code
public int redialAttendee(Member attendee)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "redial attendee failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.redialAttendee(attendee.getNumber());

    return result;
}
 

muteAttendee

接口描述

設(shè)置與會者閉音。設(shè)置閉音后,該與會者不可說(只可聽)。

前提條件

主席和與會者均已在會議中。

注意事項

主席可對所有與會者設(shè)置或取消閉音,普通與會者只可對自己設(shè)置或取消閉音,被設(shè)置閉音時,與會者可聽不可說。

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法定義

public int muteAttendee(String attendee, boolean isMute) 
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者信息,最大長度127字節(jié)。

isMute

boolean

是否閉音。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int muteAttendee(Member attendee, boolean isMute)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "mute attendee failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.muteAttendee(attendee.getNumber(), isMute);

    return result;
}
 

setHandup

接口描述

會議中,普通與會者可以調(diào)用此方法設(shè)置或取消自己的舉手,會議主席可以調(diào)用此方法取消其他與會者的舉手。

前提條件

主席和與會者均已在會議中。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult

方法定義

public int setHandup(String attendee, boolean isHandup) 
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者信息(若設(shè)置自己,則無需填寫),最大長度127字節(jié)。

isHandup

boolean

是否舉手。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int handup(boolean handUp, Member attendee)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "request chairman failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.setHandup(attendee.getNumber(), handUp);

    return result;
}
 

setVideoMode

接口描述

設(shè)置會議視頻模式。

注意事項

對應的結(jié)果事件通知為onEvtConfctrlOperationResult。

方法定義

public int setVideoMode(TsdkConfVideoMode mode) 
 

參數(shù)描述

參數(shù)名

類型

描述

mode

TsdkConfVideoMode

會議視頻模式。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int setConfMode(TsdkConfVideoMode confctrlConfMode)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "set conf mode failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.setVideoMode(confctrlConfMode);

    return result;
}
 

watchAttendee

接口描述

當主席廣播會場時,主席側(cè)可以選看會場,被廣播的與會者側(cè)以及其他與會者側(cè)都不可以選看會場。

前提條件

主席和與會者均已在會議中,且當前會議模式為“自由模式”。

注意事項

建議應用程序UI在主席廣播會場時,屏蔽選看入口。

方法定義

public int watchAttendee(TsdkWatchAttendeesInfo watchAttendeesInfo) 
 

參數(shù)描述

參數(shù)名

類型

描述

watchAttendeesInfo

TsdkWatchAttendeesInfo

與會者信息。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//java code
public int watchAttendee(Member attendee)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "broadcast attendee failed, currentConference is null ");
        return -1;
    }

    TsdkWatchAttendeesInfo watchAttendeesInfo = new TsdkWatchAttendeesInfo();

    TsdkWatchAttendees attendees = new TsdkWatchAttendees();
    attendees.setNumber(attendee.getNumber());

    List<TsdkWatchAttendees> list = new ArrayList<>();
    list.add(attendees);

    watchAttendeesInfo.setWatchAttendeeList(list);
    watchAttendeesInfo.setWatchAttendeeNum(list.size());

    int result = currentConference.watchAttendee(watchAttendeesInfo);

    return result;
}
 

broadcastAttendee

接口描述

廣播或取消廣播指定與會者(會場)。

前提條件

主席和與會者均已在會議中,且當前會議模式為“廣播模式”。

注意事項

無。

方法定義

public int broadcastAttendee(String attendee, boolean isRoadcast)
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者信息,最大長度127字節(jié)。

isBroadcast

boolean

廣播或是取消廣播。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//java code
public int broadcastAttendee(Member attendee, boolean isBroadcast)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "broadcast attendee failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.broadcastAttendee(attendee.getNumber(), isBroadcast);

     return result;
}
 

requestChairman

接口描述

申請主席權(quán)限。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法定義

public int requestChairman(String password) 
 

參數(shù)描述

參數(shù)名

類型

描述

password

String

主席密碼,最大長度127字節(jié)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int requestChairman(String chairmanPassword)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "request chairman failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.requestChairman(chairmanPassword);

    return result;
}
 

releaseChairman

接口描述

釋放主席權(quán)限。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法義

public int releaseChairman() 
 

參數(shù)描述

無。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int releaseChairman()
{
    if (null == currentConference)
    {
        Log.e(TAG,  "release chairman failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.releaseChairman();

    return result;
}
 

joinDataConference

接口描述

加入數(shù)據(jù)會議。

注意事項

對應的回調(diào)函數(shù)為onEvtJoinDataConfResult。

方法定義

public int joinDataConference() 
 

參數(shù)描述

無。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int joinDataConf()
{
    if (null == currentConference)
    {
        Log.e(TAG,  "join data conf failed, currentConference is null ");
        return -1;
    }

    int result =  currentConference.joinDataConference();

    return result;
}
 

attachSurfaceView

接口描述

綁定視圖。

注意事項

無。

方法定義

public void attachSurfaceView(ViewGroup container, Context context)
 

參數(shù)描述

參數(shù)名

類型

描述

container

ViewGroup

視圖組件。

context

Context

上下文。

返回值

無。

代碼示例

//Java code
public void attachSurfaceView(ViewGroup container, Context context)
{
    if (null == currentConference)
    {
        Log.e(TAG,  "attach surface view failed, currentConference is null ");
        return;
    }
    currentConference.attachSurfaceView(container, context);
}
 

setPresenter

接口描述

設(shè)置主講人。

注意事項

無。

方法定義

public int setPresenter(String attendee)
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者信息,最大長度127字節(jié)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int setPresenter(Member attendee)
{
	if (null == currentConference)
	{
		Log.e(TAG,  "set presenter failed, currentConference is null ");
		return -1;
	}

	int result = currentConference.setPresenter(attendee.getNumber());

	return result;
}
 

sendChatMsg

接口描述

發(fā)送聊天消息。

注意事項

無。

方法定義

public int sendChatMsg(TsdkConfChatMsgInfo confChatMsgInfo)
 

參數(shù)描述

參數(shù)名

類型

描述

confChatMsgInfo

TsdkConfChatMsgInfo

聊天相關(guān)信息。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
 public void sendConfMessage(String message)
    {
        if (null == currentConference)
        {
            Log.e(TAG,  "send chat failed, currentConference is null ");
            return;
        }
        TsdkConfChatMsgInfo chatMsgInfo = new TsdkConfChatMsgInfo();
        chatMsgInfo.setChatType(TsdkConfChatType.TSDK_E_CONF_CHAT_PUBLIC);
        chatMsgInfo.setChatMsg(message);
        chatMsgInfo.setSenderDisplayName(self.getDisplayName());
        currentConference.sendChatMsg(chatMsgInfo);
    }
 

setRecordBroadcast

接口描述

開始或停止錄播。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult

方法定義

public int setRecordBroadcast(TsdkConfRecordStatus recordBroadcast)
 

參數(shù)描述

參數(shù)名

類型

描述

recordBroadcast

TsdkConfRecordStatus

錄播狀態(tài)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int recordConf(boolean isRecode)
{
    int result;
    if (null == currentConference) 
    {        
        Log.e(TAG, "record  conf failed, currentConference is null ");
        return -1;   
    }
    if (isRecode) 
    {       
         result = currentConference.setRecordBroadcast(TSDK_E_CONF_RECORD_START);    
    } 
    else 
    {        
        result = currentConference.setRecordBroadcast(TSDK_E_CONF_RECORD_STOP); 
    }
    return result;
}
 

setLiveBroadcast

接口描述

開始或停止直播。

注意事項

對應的回調(diào)函數(shù)為onEvtConfctrlOperationResult。

方法定義

public int setLiveBroadcast(TsdkConfRecordStatus liveBroadcast)
 

參數(shù)描述

參數(shù)名

類型

描述

liveBroadcast

TsdkConfRecordStatus

直播狀態(tài)。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int recordConf(boolean isRecode)
{
    int result;
    if (null == currentConference) 
    {        
        Log.e(TAG, "record  conf failed, currentConference is null ");
        return -1;   
    }
    if (isRecode) 
    {       
         result = currentConference.setLiveBroadcast(TSDK_E_CONF_RECORD_START);    
    } 
    else 
    {        
        result = currentConference.setLiveBroadcast(TSDK_E_CONF_RECORD_STOP); 
    }
    return result;
}
 

startScreenShare

接口描述

開始桌面共享。

注意事項

需要先申請截屏權(quán)限,申請成功之后調(diào)用此接口。

方法定義

public int startScreenShare(Context context, Intent data)
 

參數(shù)描述

參數(shù)名

類型

描述

context

Context

上下文

data

Intent

屏幕捕捉的Intent,通過此參數(shù)來獲取MediaProjection實例

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
@TargetApi(21)
    private void requestScreenSharePermission(){
        MediaProjectionManager localMediaProjectionManager = (MediaProjectionManager) getSystemService(Context.MEDIA_PROJECTION_SERVICE);
        if (null != localMediaProjectionManager) {
            startActivityForResult(localMediaProjectionManager.createScreenCaptureIntent(), UIConstants.REQUEST_MEDIA_PROJECTION);
        }
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        //設(shè)置返回處理,只有require 的權(quán)限需要處理取消邏輯,其他的權(quán)限場景只處理成功邏輯
        if (Activity.RESULT_OK != resultCode) {
            Log.d("ConfManagerActivity", "resultCode is not ok requestCode: " + requestCode);
            return;
        }
        switch (requestCode){
            case UIConstants.REQUEST_MEDIA_PROJECTION:
                if (data != null) {
                    // 獲取到截屏權(quán)限后,先判斷是否懸浮窗權(quán)限
                    mPresenter.startScreenShare(this , data);
                }
                break;
            default:
                break;
        }
    }
 

stopScreenShare

接口描述

停止桌面共享。

注意事項

無。

方法定義

public void stopScreenShare()
 

參數(shù)描述

無。

返回值

無。

代碼示例

//Java code
public void stopScreenShare(){
        if (null == currentConference)
        {
            Log.e(TAG,  "stop screen share failed, currentConference is null ");
            return ;
        }
        currentConference.stopScreenShare();
    }
 

startAnnotation

接口描述

開始標注。

注意事項

只有主動共享者需要調(diào)用。

方法定義

public int startAnnotation()
 

參數(shù)描述

無。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int startAnnotation( ){
        if (null == currentConference)
        {
            Log.e(TAG,  "start annotation failed, currentConference is null ");
            return -1;
        }
        int result =  currentConference.startAnnotation();
        return result;
    }
 

stopAnnotation

接口描述

停止標注。

注意事項

無。

方法定義

public int stopAnnotation()
 

參數(shù)描述

無。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int stopAnnotation(){
        if (null == currentConference)
        {
            Log.e(TAG,  "stop annotation failed, currentConference is null ");
            return -1;
        }
        int result =  currentConference.stopAnnotation();
        return result;
    }
 

setAnnotationLocalStatus

接口描述

打開、關(guān)閉本地主動標注功能。

注意事項

在打開前,應用程序應完成畫筆設(shè)置,否則使用默認畫筆。

方法定義

public void setAnnotationLocalStatus(boolean enable)
 

參數(shù)描述

參數(shù)名

類型

描述

enable

boolean

打開或關(guān)閉本地主動標注功能

返回值

無。

代碼示例

//Java code
public void setAnnotationLocalStatus(boolean enable) {
        if (null == currentConference)
        {
            Log.e(TAG,  "set annotation local status failed, currentConference is null ");
            return;
        }
        currentConference.setAnnotationLocalStatus(enable);
    }
 

setAnnotationPen

接口描述

設(shè)置標注畫筆。

注意事項

無。

方法定義

public void setAnnotationPen(int penColor, int penWidth)
 

參數(shù)描述

參數(shù)名

類型

描述

penColor

int

畫筆顏色(RGBA),用0xRRGGBBAA表示

penWidth

int

畫筆寬度

返回值

無。

代碼示例

//Java code
public void setAnnotationPen(int penColor, int penWidth) {
        if (null == currentConference)
        {
            Log.e(TAG,  "set annotation pen failed, currentConference is null ");
            return;
        }
        currentConference.setAnnotationPen(penColor, penWidth);
    }
 

eraseAnnotation

接口描述

標注欄中的橡皮擦()功能接口,用于擦除標注。

注意事項

入?yún)閠rue,可以擦除自己和其他與會者的標注。為false只能擦除自己的標注。橡皮擦只能一條一條擦除。

方法定義

public void eraseAnnotation(boolean isAll)
 

參數(shù)描述

參數(shù)名

類型

描述

isAll

boolean

是否清除所有。

返回值

無。

代碼示例

//Java code
public void eraseAnnotation(boolean isAll) {
        if (null == currentConference)
        {
            Log.e(TAG,  "erase annotation failed, currentConference is null ");
            return;
        }
        currentConference.eraseAnnotation(isAll);
    }
 

clearAnnotation

接口描述

標注欄中的清除()功能接口,用于清除標注。

注意事項

入?yún)閠rue,可以清除自己和其他與會者的標注。為false只能清除自己的標注??梢砸淮涡郧宄幸呀?jīng)標注的內(nèi)容。

方法定義

public void clearAnnotation(boolean isAll)
 

參數(shù)描述

參數(shù)名

類型

描述

isAll

boolean

是否清除所有。

返回值

無。

代碼示例

//Java code
public void clearAnnotation(boolean isAll) {
        if (null == currentConference)
        {
            Log.e(TAG,  "clear annotation failed, currentConference is null ");
            return;
        }
        currentConference.clearAnnotation(isAll);
    }
 

setAsOwner

接口描述

設(shè)置共享權(quán)限。

注意事項

無。

方法定義

public int setAsOwner(String attendee, TsdkConfAsActionType actionType)
 

參數(shù)描述

參數(shù)名

類型

描述

attendee

String

與會者號碼。

actionType

TsdkConfAsActionType

共享行為類型。

返回值

類型

描述

int

成功返回TSDK_SUCCESS,失敗返回相應錯誤碼。

代碼示例

//Java code
public int setAsOwner(String attendee, TsdkConfAsActionType actionType){
        if (null == currentConference)
        {
            Log.e(TAG,  "clear annotation failed, currentConference is null ");
            return -1;
        }
        return currentConference.setAsOwner(attendee, actionType);
    }
 

getShareCodecInfo

接口描述

獲取共享統(tǒng)計信息。

注意事項

無。

方法定義

 public void getShareCodecInfo()
 

參數(shù)描述

無。

返回值

無。

代碼示例

//Java code
public void getShareStatisticInfo(){
	if (null == currentConference)
	{
		return ;
	}
	currentConference.getShareCodecInfo();
}