1.6日第9条BUG解决

This commit is contained in:
fuenmao 2025-01-07 09:48:00 +08:00
parent 363fd0b77c
commit c98a1db1d3
1 changed files with 27 additions and 2 deletions

View File

@ -861,8 +861,33 @@ class MeetingMainLogic extends GetxController with RequestToolMixin {
int speakerNumber,
int totalVolume) {
if (speakers.isNotEmpty) {
for (AudioVolumeInfo avi in speakers) {
for (MeetingRoomUser mru in state.cacheUsers.value) {
if(avi.uid == 0){
debugPrint("wgs输出===RTC-本地用户音量提示:${avi.uid}--${avi.volume}");
for(MeetingRoomUser mru in state.cacheUsers.value){
if(UserStore.to.userInfoEntity.value!.uid == mru.uid){
mru.volume = CountMicrophoneVolume.getVolume(avi.volume!);
state.microphoneVolume.value =
CountMicrophoneVolume.getVolume(avi.volume!);
}
}
}else{
debugPrint("wgs输出===RTC-远端用户音量提示:${avi.uid}--${avi.volume}");
for(MeetingRoomUser mru in state.cacheUsers.value){
mru.volume = CountMicrophoneVolume.getVolume(avi.volume!);
if (avi.volume != 0) {
state.spokesman.value = mru.userName;
state.spokesmanVolume.value =
CountMicrophoneVolume.getVolume(avi.volume!);
} else {
state.spokesman.value = "";
state.spokesmanVolume.value = 0;
}
}
}
/*for (MeetingRoomUser mru in state.cacheUsers.value) {
//
if (avi.uid == 0) {
// debugPrint("wgs输出===RTC-用户音量提示(自己):${CountMicrophoneVolume.getVolume(avi.volume!)}");
@ -885,7 +910,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin {
}
}
}
}
}*/
}
}
},