无界SDK更新和退出频道逻辑优化
This commit is contained in:
@@ -91,7 +91,7 @@ dependencies {
|
||||
// 声网
|
||||
api 'io.agora.rtc:full-sdk:3.0.1'
|
||||
//无界
|
||||
api 'com.wjhd.wy:WYMediaEngine-beta:1.7.5-SNAPSHOT-phone'
|
||||
api 'com.wjhd.wy:WYMediaEngine:1.8.3'
|
||||
|
||||
|
||||
// 易盾
|
||||
|
@@ -116,7 +116,7 @@ public class WJAudioEngineManager extends BaseEngine {
|
||||
}
|
||||
if (speakers == null || speakers.length == 0) return;
|
||||
for (AudioVolumeInfo speaker : speakers) {
|
||||
int micPosition = AvRoomDataManager.get().getMicPosition(speaker.uid);
|
||||
int micPosition = AvRoomDataManager.get().getMicPosition(speaker.getUid());
|
||||
if (micPosition == Integer.MIN_VALUE) continue;
|
||||
rtcEngineManager.speakQueueMembersPosition.add(micPosition);
|
||||
}
|
||||
@@ -247,11 +247,11 @@ public class WJAudioEngineManager extends BaseEngine {
|
||||
@Override
|
||||
public void leaveChannel() {
|
||||
Log.e(TAG, "leaveChannel~~~");
|
||||
stopAudioMixing();
|
||||
if (mAudioEngine != null) {
|
||||
stopAudioMixing();
|
||||
mAudioEngine.leaveChannel();
|
||||
WJMediaEngine.destroyAudioEngine();
|
||||
}
|
||||
WJMediaEngine.destroyAudioEngine();
|
||||
mAudioEngine = null;
|
||||
isMute = false;
|
||||
isRemoteMute = false;
|
||||
|
Reference in New Issue
Block a user