房间内部优化。

This commit is contained in:
2025-11-08 17:45:45 +08:00
parent 33c2bf2ffd
commit a1901a130f
25 changed files with 235 additions and 376 deletions

View File

@@ -299,7 +299,7 @@ public class AgoraManagerEx {
}
};
}
public void joinChannelEx(String token, String channelId, String pkUserIds) {
public void joinChannelEx(String token, String channelId, int pkUserIds) {
if (rtcEngineEx != null) {
options = new ChannelMediaOptions();
options.clientRoleType = Constants.CLIENT_ROLE_BROADCASTER;
@@ -311,7 +311,7 @@ public class AgoraManagerEx {
connection.channelId = channelId;
connection.localUid = SpUtil.getUserId();
pkRoomId = channelId;
pkUserId = Integer.parseInt(pkUserIds);
pkUserId = pkUserIds;
rtcEngineEx.joinChannelEx(token, connection, options, getDefaultEventHandler());
muteAllRemoteAudioStreamsEx(true);
muteAllRemoteAudioStreamsExUserId(false);