梳理麦克风开闭逻辑1
This commit is contained in:
parent
4507445407
commit
a96c23c2aa
|
|
@ -336,7 +336,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
|
|||
state.isOpenMicrophone.value = true;
|
||||
|
||||
// 恢复发布音频流
|
||||
muteLocalAudioStream(false);
|
||||
state.rctEngine.value?.muteLocalAudioStream(false);
|
||||
}
|
||||
}else{
|
||||
debugPrint("wgs输出===:Socket-用户单独闭麦");
|
||||
|
|
@ -349,7 +349,7 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
|
|||
state.isOpenMicrophone.value = false;
|
||||
|
||||
// 取消发布音频流
|
||||
muteLocalAudioStream(true);
|
||||
state.rctEngine.value?.muteLocalAudioStream(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
@ -654,11 +654,6 @@ class MeetingMainLogic extends GetxController with RequestToolMixin{
|
|||
await state.rctEngine.value?.disableAudio();
|
||||
}
|
||||
|
||||
/// 是否取消发布本地音频流
|
||||
Future<void> muteLocalAudioStream(bool mute) async {
|
||||
await state.rctEngine.value?.muteLocalAudioStream(mute);
|
||||
}
|
||||
|
||||
/// 设置启用视频模块
|
||||
Future<void> setEnableVideo() async {
|
||||
await state.rctEngine.value?.enableVideo();
|
||||
|
|
|
|||
Loading…
Reference in New Issue