1:添加背包一键全清功能
2:添加查看心动值列表 3:修改进入小黑屋出现不能收到消息的问题
This commit is contained in:
@@ -411,17 +411,19 @@ public class AgoraManager {
|
||||
@SuppressLint("SuspiciousIndentation")
|
||||
public void setLocalAudioEnabled(boolean enabled, String userId) {
|
||||
if (rtcEngine != null) {
|
||||
if (userId.equals(SpUtil.getUserId()+"")) {
|
||||
rtcEngine.enableLocalAudio(enabled); // 启用/禁用音频采集
|
||||
}
|
||||
this.isLocalAudioEnabled = enabled;
|
||||
if (!enabled) {
|
||||
for (SoundLevelUpdateListener listener : soundLevelUpdateListeners) {
|
||||
if (listener != null) {
|
||||
ThreadUtils.runOnUiThread(() -> {
|
||||
// 远程用户音量变化
|
||||
listener.onRemoteSoundLevelUpdate(userId, 0);
|
||||
});
|
||||
if (userId != null) {
|
||||
if (userId.equals(SpUtil.getUserId() + "")) {
|
||||
rtcEngine.enableLocalAudio(enabled); // 启用/禁用音频采集
|
||||
}
|
||||
this.isLocalAudioEnabled = enabled;
|
||||
if (!enabled) {
|
||||
for (SoundLevelUpdateListener listener : soundLevelUpdateListeners) {
|
||||
if (listener != null) {
|
||||
ThreadUtils.runOnUiThread(() -> {
|
||||
// 远程用户音量变化
|
||||
listener.onRemoteSoundLevelUpdate(userId, 0);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -466,6 +468,7 @@ public class AgoraManager {
|
||||
if (rtcEngine == null) {
|
||||
init(CommonAppContext.getInstance().getCurrentEnvironment().getSwSdkAppId());
|
||||
}
|
||||
// 正确做法
|
||||
rtcEngine.muteLocalAudioStreamEx(enabled, connection);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user