1.6日第9条BUG解决
This commit is contained in:
parent
363fd0b77c
commit
c98a1db1d3
|
|
@ -861,8 +861,33 @@ class MeetingMainLogic extends GetxController with RequestToolMixin {
|
||||||
int speakerNumber,
|
int speakerNumber,
|
||||||
int totalVolume) {
|
int totalVolume) {
|
||||||
if (speakers.isNotEmpty) {
|
if (speakers.isNotEmpty) {
|
||||||
|
|
||||||
for (AudioVolumeInfo avi in speakers) {
|
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) {
|
if (avi.uid == 0) {
|
||||||
// debugPrint("wgs输出===:RTC-用户音量提示(自己):${CountMicrophoneVolume.getVolume(avi.volume!)}");
|
// debugPrint("wgs输出===:RTC-用户音量提示(自己):${CountMicrophoneVolume.getVolume(avi.volume!)}");
|
||||||
|
|
@ -885,7 +910,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue