From 5f4bae667bc08f02abae9bb90bc2f0765f4f4996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=81=E7=9A=AE?= <14840170+lao-pi123@user.noreply.gitee.com> Date: Mon, 23 Sep 2024 16:54:05 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=B8=B8=E6=88=8FIM=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/common/manager/imrongcloud/GameSwMicManager.java | 5 +---- .../java/com/yunbao/live/activity/SudSwGameActivity.java | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/GameSwMicManager.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/GameSwMicManager.java index f5a4b5a78..49acc50a6 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/GameSwMicManager.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/GameSwMicManager.java @@ -16,10 +16,6 @@ import com.yunbao.common.utils.WordUtil; import java.util.ArrayList; import java.util.List; -import cn.rongcloud.rtc.api.RCRTCRemoteUser; -import cn.rongcloud.rtc.api.callback.IRCRTCResultCallback; -import cn.rongcloud.rtc.api.stream.RCRTCInputStream; -import cn.rongcloud.rtc.base.RTCErrorCode; import io.rong.imlib.IRongCallback; import io.rong.imlib.RongIMClient; import io.rong.imlib.model.Conversation; @@ -120,6 +116,7 @@ public class GameSwMicManager { Log.e("wewe", contentJson); SudGameSocketImEvent sudGameSocketImEvent = new Gson().fromJson(contentJson, SudGameSocketImEvent.class); sudGameSocketImEvent.getMsg().get(0).setTime("11"); + processingMessage(sudGameSocketImEvent); } @Override diff --git a/live/src/main/java/com/yunbao/live/activity/SudSwGameActivity.java b/live/src/main/java/com/yunbao/live/activity/SudSwGameActivity.java index 1a6519e70..910ddb611 100644 --- a/live/src/main/java/com/yunbao/live/activity/SudSwGameActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/SudSwGameActivity.java @@ -152,6 +152,7 @@ public class SudSwGameActivity extends AbsActivity implements GameSwMicManager.M @Override public void onSuccess(RoomMicStatusModel data) { gameMicManager = new GameSwMicManager(); + gameMicManager.attachView(SudSwGameActivity.this); //初始化声网引擎 SWAuManager.get().initRtcEngineAudio(mContext); //语音