Compare commits

...

2 Commits

Author SHA1 Message Date
18401019693
e723356463 替换声网的RTC库 2024-04-08 14:02:03 +08:00
18401019693
d38bc35324 替换声网的RTC库 2024-04-08 13:23:46 +08:00
3 changed files with 25 additions and 25 deletions

View File

@@ -158,7 +158,7 @@ dependencies {
//腾讯im //腾讯im
api 'com.tencent.imsdk:imsdk-plus:5.4.666' api 'com.tencent.imsdk:imsdk-plus:5.4.666'
api 'com.google.code.gson:gson:2.8.8' api 'com.google.code.gson:gson:2.8.8'
api 'cn.rongcloud.sdk:rtc_lib:5.2.0' // 音视频通话基础能力库 // api 'cn.rongcloud.sdk:rtc_lib:5.2.0' // 音视频通话基础能力库
//此处以集成 5.1.2 版本为例 //此处以集成 5.1.2 版本为例
api 'cn.rongcloud.sdk:im_lib:5.2.0.2' api 'cn.rongcloud.sdk:im_lib:5.2.0.2'
@@ -226,5 +226,5 @@ dependencies {
//轮播 一屏显示多个 //轮播 一屏显示多个
api 'com.github.xiaohaibin:XBanner:androidx_v1.2.6' api 'com.github.xiaohaibin:XBanner:androidx_v1.2.6'
implementation 'io.agora.rtc:full-sdk:4.3.0'
} }

View File

@@ -9,9 +9,9 @@ ext {
] ]
manifestPlaceholders = [ manifestPlaceholders = [
//正式、 //正式、
// serverHost : "https://napi.yaoulive.com", serverHost : "https://napi.yaoulive.com",
// 测试 // 测试
serverHost : "https://ceshi.yaoulive.com", // serverHost : "https://ceshi.yaoulive.com",
//百度语音识别 //百度语音识别

View File

@@ -220,27 +220,27 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
Bus.getOn(this); Bus.getOn(this);
Intent intent = getIntent(); Intent intent = getIntent();
initFaceManager(); initFaceManager();
RCRTCEngine.getInstance().registerStatusReportListener(new IRCRTCStatusReportListener() { // RCRTCEngine.getInstance().registerStatusReportListener(new IRCRTCStatusReportListener() {
//
@Override // @Override
public void onConnectionStats(StatusReport statusReport) { // public void onConnectionStats(StatusReport statusReport) {
//视频发送信息 // //视频发送信息
for (Map.Entry<String, StatusBean> entry : statusReport.statusVideoSends.entrySet()) { // for (Map.Entry<String, StatusBean> entry : statusReport.statusVideoSends.entrySet()) {
StatusBean statusBean = entry.getValue(); // StatusBean statusBean = entry.getValue();
//获取userID // //获取userID
String userId = statusBean.uid; // String userId = statusBean.uid;
//获取视频 宽x高@帧率 // //获取视频 宽x高@帧率
String resolution = statusBean.frameWidth + "x" + statusBean.frameHeight + "@" + statusBean.frameRate; // String resolution = statusBean.frameWidth + "x" + statusBean.frameHeight + "@" + statusBean.frameRate;
//获取码率 // //获取码率
long bitRate = statusBean.bitRate; // long bitRate = statusBean.bitRate;
//丢包率 // //丢包率
long lossRate = statusBean.packetLostRate; // long lossRate = statusBean.packetLostRate;
//带宽 // //带宽
String googAvailableSendBandwidth = statusReport.googAvailableSendBandwidth; // String googAvailableSendBandwidth = statusReport.googAvailableSendBandwidth;
// Log.e("网速和内存", "获取视频:" + resolution + " 丢包率:" + lossRate + " 带宽:" + googAvailableSendBandwidth); //// Log.e("网速和内存", "获取视频:" + resolution + " 丢包率:" + lossRate + " 带宽:" + googAvailableSendBandwidth);
} // }
} // }
}); // });
leave_img = findViewById(R.id.leave_img); leave_img = findViewById(R.id.leave_img);
mLiveSDK = intent.getIntExtra(Constants.LIVE_SDK, Constants.LIVE_SDK_KSY); mLiveSDK = intent.getIntExtra(Constants.LIVE_SDK, Constants.LIVE_SDK_KSY);
mLiveKsyConfigBean = intent.getParcelableExtra(Constants.LIVE_KSY_CONFIG); mLiveKsyConfigBean = intent.getParcelableExtra(Constants.LIVE_KSY_CONFIG);