替换声网的RTC库
This commit is contained in:
parent
d38bc35324
commit
e723356463
@ -9,9 +9,9 @@ ext {
|
||||
]
|
||||
manifestPlaceholders = [
|
||||
//正式、
|
||||
// serverHost : "https://napi.yaoulive.com",
|
||||
serverHost : "https://napi.yaoulive.com",
|
||||
// 测试
|
||||
serverHost : "https://ceshi.yaoulive.com",
|
||||
// serverHost : "https://ceshi.yaoulive.com",
|
||||
|
||||
//百度语音识别
|
||||
|
||||
|
@ -220,27 +220,27 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
Bus.getOn(this);
|
||||
Intent intent = getIntent();
|
||||
initFaceManager();
|
||||
RCRTCEngine.getInstance().registerStatusReportListener(new IRCRTCStatusReportListener() {
|
||||
|
||||
@Override
|
||||
public void onConnectionStats(StatusReport statusReport) {
|
||||
//视频发送信息
|
||||
for (Map.Entry<String, StatusBean> entry : statusReport.statusVideoSends.entrySet()) {
|
||||
StatusBean statusBean = entry.getValue();
|
||||
//获取userID
|
||||
String userId = statusBean.uid;
|
||||
//获取视频 宽x高@帧率
|
||||
String resolution = statusBean.frameWidth + "x" + statusBean.frameHeight + "@" + statusBean.frameRate;
|
||||
//获取码率
|
||||
long bitRate = statusBean.bitRate;
|
||||
//丢包率
|
||||
long lossRate = statusBean.packetLostRate;
|
||||
//带宽
|
||||
String googAvailableSendBandwidth = statusReport.googAvailableSendBandwidth;
|
||||
// Log.e("网速和内存", "获取视频:" + resolution + " 丢包率:" + lossRate + " 带宽:" + googAvailableSendBandwidth);
|
||||
}
|
||||
}
|
||||
});
|
||||
// RCRTCEngine.getInstance().registerStatusReportListener(new IRCRTCStatusReportListener() {
|
||||
//
|
||||
// @Override
|
||||
// public void onConnectionStats(StatusReport statusReport) {
|
||||
// //视频发送信息
|
||||
// for (Map.Entry<String, StatusBean> entry : statusReport.statusVideoSends.entrySet()) {
|
||||
// StatusBean statusBean = entry.getValue();
|
||||
// //获取userID
|
||||
// String userId = statusBean.uid;
|
||||
// //获取视频 宽x高@帧率
|
||||
// String resolution = statusBean.frameWidth + "x" + statusBean.frameHeight + "@" + statusBean.frameRate;
|
||||
// //获取码率
|
||||
// long bitRate = statusBean.bitRate;
|
||||
// //丢包率
|
||||
// long lossRate = statusBean.packetLostRate;
|
||||
// //带宽
|
||||
// String googAvailableSendBandwidth = statusReport.googAvailableSendBandwidth;
|
||||
//// Log.e("网速和内存", "获取视频:" + resolution + " 丢包率:" + lossRate + " 带宽:" + googAvailableSendBandwidth);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
leave_img = findViewById(R.id.leave_img);
|
||||
mLiveSDK = intent.getIntExtra(Constants.LIVE_SDK, Constants.LIVE_SDK_KSY);
|
||||
mLiveKsyConfigBean = intent.getParcelableExtra(Constants.LIVE_KSY_CONFIG);
|
||||
|
Loading…
x
Reference in New Issue
Block a user