fix:增加对讲时静音的提示框
This commit is contained in:
parent
b9fb2bd479
commit
18d4836fde
@ -449,22 +449,23 @@ class TalkViewLogic extends BaseGetXController {
|
|||||||
/// 更新发送预期数据
|
/// 更新发送预期数据
|
||||||
void updateTalkExpect() {
|
void updateTalkExpect() {
|
||||||
TalkExpectReq talkExpectReq = TalkExpectReq();
|
TalkExpectReq talkExpectReq = TalkExpectReq();
|
||||||
if (state.isOpenVoice.value) {
|
state.isOpenVoice.value = !state.isOpenVoice.value;
|
||||||
talkExpectReq = TalkExpectReq(
|
if (!state.isOpenVoice.value) {
|
||||||
videoType: [VideoTypeE.IMAGE],
|
|
||||||
audioType: [AudioTypeE.G711],
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
talkExpectReq = TalkExpectReq(
|
talkExpectReq = TalkExpectReq(
|
||||||
videoType: [VideoTypeE.IMAGE],
|
videoType: [VideoTypeE.IMAGE],
|
||||||
audioType: [],
|
audioType: [],
|
||||||
);
|
);
|
||||||
|
showToast('已静音'.tr);
|
||||||
|
} else {
|
||||||
|
talkExpectReq = TalkExpectReq(
|
||||||
|
videoType: [VideoTypeE.IMAGE],
|
||||||
|
audioType: [AudioTypeE.G711],
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 修改发送预期数据
|
/// 修改发送预期数据
|
||||||
StartChartManage().changeTalkExpectDataTypeAndReStartTalkExpectMessageTimer(
|
StartChartManage().changeTalkExpectDataTypeAndReStartTalkExpectMessageTimer(
|
||||||
talkExpect: talkExpectReq);
|
talkExpect: talkExpectReq);
|
||||||
state.isOpenVoice.value = !state.isOpenVoice.value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// 截图并保存到相册
|
/// 截图并保存到相册
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user