手机看片1024精品国产,丁香婷婷成人,午夜国产一级片,黄色片网站在线免费观看,男人的天堂香蕉在线视频,一级特黄毛片在线,中文日产国产精品久久

智慧服務(wù),成就美好體驗(yàn) 項(xiàng)目咨詢

主頁(yè) > 服務(wù)與支持 > 開發(fā)平臺(tái) > 客戶端SDK參考 > Android Native SDK > 會(huì)議 獲取信號(hào)和質(zhì)量數(shù)據(jù)

入門使用

獲取信號(hào)和質(zhì)量數(shù)據(jù)

更新時(shí)間:2019-11-20

獲取信號(hào)和質(zhì)量數(shù)據(jù)

描述

用戶正在通話中或者會(huì)議中,用戶可以獲取當(dāng)前呼叫的信號(hào)強(qiáng)度和質(zhì)量數(shù)據(jù)信息,如果在當(dāng)前正在主動(dòng)共享或觀看共享,用戶還能獲取共享的質(zhì)量數(shù)據(jù)信息。

前提條件

用戶正在通話中或者會(huì)議中。

業(yè)務(wù)流程

圖1 獲取信號(hào)和質(zhì)量數(shù)據(jù)流程 
  1. SDK向UI上報(bào)事件onEvtStatisticInfo,通知事件攜帶本次呼叫對(duì)象TsdkCall,信號(hào)強(qiáng)度和音視頻質(zhì)量數(shù)據(jù)對(duì)象TsdkCallStatisticInfo。

     

    說(shuō)明: 

    onEvtStatisticInfo事件每5秒上報(bào)一次,若UI需要更高頻率獲取音視頻質(zhì)量數(shù)據(jù),可以調(diào)用getCallStatisticInfo()接口獲取。

    代碼示例:
    1
    2
    3
    4
    //Java code
    public void onEvtStatisticInfo(TsdkCall call, long signalStrength, TsdkCallStatisticInfo statisticInfo) {
    	CallMgr.getInstance().handleUpDateCallStatisticInfo(signalStrength, statisticInfo);
    }
    
     

     

  1. 發(fā)送消息側(cè)、其他與會(huì)者側(cè)SDK收到服務(wù)器返回的發(fā)送消息響應(yīng),向UI上報(bào)會(huì)議中的聊天消息通知事件onEvtRecvChatMsg,UI刷新界面顯示消息內(nèi)容。

     

    代碼示例:
    1
    2
    3
    4
    5
    6
    7
    8
    //Java code
    public void getShareStatisticInfo(){
    	if (null == currentConference)
    	{
    		return ;
    	}
    	currentConference.getShareCodecInfo();
    }
    
     

     

  2. SDK向UI上報(bào)事件onEvtShareStatisticInfo,通知事件攜帶會(huì)議對(duì)象TsdkConference和共享質(zhì)量數(shù)據(jù)對(duì)象TsdkShareStatisticInfo。

     

    代碼示例:
    1
    2
    3
    4
    //Java code
    public void onEvtShareStatisticInfo(TsdkConference conference, TsdkShareStatisticInfo statisticInfo) {
    	MeetingMgr.getInstance().handleShareStatisticInfo(conference, statisticInfo);
    }
    
     

     

注意事項(xiàng)

無(wú)。