Compare commits

...

2 Commits

1 changed files with 5 additions and 2 deletions

View File

@ -386,9 +386,9 @@ class MeetingMainLogic extends GetxController with RequestToolMixin {
} }
if (UserStore.to.userInfoEntity.value!.uid == meetingRoomUser.uid) { if (UserStore.to.userInfoEntity.value!.uid == meetingRoomUser.uid) {
state.isSpeak.value = true; state.isSpeak.value = true;
state.defaulOpenState.value = 1; debugPrint("wgs输出===Socket-状态:${state.defaulOpenState.value}");
if (state.defaulOpenState.value == 1) { if (state.defaulOpenState.value == 1) {
state.isOpenMicrophone.value = true; doHttpSetMicr(true);
} else if (state.defaulOpenState.value == 2) { } else if (state.defaulOpenState.value == 2) {
doHttpSetCamer(true); doHttpSetCamer(true);
} }
@ -413,6 +413,9 @@ class MeetingMainLogic extends GetxController with RequestToolMixin {
state.isOpenCamera.value = false; state.isOpenCamera.value = false;
state.isOpenShare.value = false; state.isOpenShare.value = false;
//
doHttpSetMicr(false);
doHttpSetCamer(false);
// SDK角色为观众 // SDK角色为观众
setClientRole("观众"); setClientRole("观众");
// //