1、游戏IM修复 1

This commit is contained in:
老皮 2024-09-23 16:54:05 +08:00
parent b23b975edd
commit 5f4bae667b
2 changed files with 2 additions and 4 deletions

View File

@ -16,10 +16,6 @@ import com.yunbao.common.utils.WordUtil;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; 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.IRongCallback;
import io.rong.imlib.RongIMClient; import io.rong.imlib.RongIMClient;
import io.rong.imlib.model.Conversation; import io.rong.imlib.model.Conversation;
@ -120,6 +116,7 @@ public class GameSwMicManager {
Log.e("wewe", contentJson); Log.e("wewe", contentJson);
SudGameSocketImEvent sudGameSocketImEvent = new Gson().fromJson(contentJson, SudGameSocketImEvent.class); SudGameSocketImEvent sudGameSocketImEvent = new Gson().fromJson(contentJson, SudGameSocketImEvent.class);
sudGameSocketImEvent.getMsg().get(0).setTime("11"); sudGameSocketImEvent.getMsg().get(0).setTime("11");
processingMessage(sudGameSocketImEvent);
} }
@Override @Override

View File

@ -152,6 +152,7 @@ public class SudSwGameActivity extends AbsActivity implements GameSwMicManager.M
@Override @Override
public void onSuccess(RoomMicStatusModel data) { public void onSuccess(RoomMicStatusModel data) {
gameMicManager = new GameSwMicManager(); gameMicManager = new GameSwMicManager();
gameMicManager.attachView(SudSwGameActivity.this);
//初始化声网引擎 //初始化声网引擎
SWAuManager.get().initRtcEngineAudio(mContext); SWAuManager.get().initRtcEngineAudio(mContext);
//语音 //语音