fix:调整点击静音时发送期望数据被改为iamge的问题

This commit is contained in:
liyi 2025-05-08 15:37:10 +08:00
parent 7f7bb49d8c
commit 79f2d95314
3 changed files with 2 additions and 29 deletions

View File

@ -20,8 +20,4 @@ class TalkConstant {
videoType: [VideoTypeE.H264_720P],
audioType: [AudioTypeE.G711],
);
static TalkExpectReq H264_720P_Expect = TalkExpectReq(
videoType: [VideoTypeE.H264_720P],
audioType: [AudioTypeE.G711],
);
}

View File

@ -214,27 +214,4 @@ class UdpTalkRequestHandler extends ScpMessageBaseHandle
print('app主动发请求收到回复后发送的预期数据=======锁不支持H264和MJPEG默认发送图像视频格式期望数据');
}
}
/// app主动发请求
void _handleResponseSendExpect() {
final LockListInfoItemEntity currentKeyInfo =
CommonDataManage().currentKeyInfo;
final isH264 = currentKeyInfo.lockFeature?.isH264 == 1;
final isMJpeg = currentKeyInfo.lockFeature?.isMJpeg == 1;
// 使H264MJPEG
if (isH264) {
// H264H264视频和G711音频期望
startChartManage.sendH264VideoAndG711AudioTalkExpectData();
print('锁支持H264发送H264视频格式期望数据');
} else if (isMJpeg) {
// MJPEGG711音频期望
startChartManage.sendImageVideoAndG711AudioTalkExpectData();
print('锁不支持H264支持MJPEG发送MJPEG视频格式期望数据');
} else {
// 使
startChartManage.sendImageVideoAndG711AudioTalkExpectData();
print('锁不支持H264和MJPEG默认发送图像视频格式期望数据');
}
}
}

View File

@ -519,13 +519,13 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
state.isOpenVoice.value = !state.isOpenVoice.value;
if (!state.isOpenVoice.value) {
talkExpectReq = TalkExpectReq(
videoType: [VideoTypeE.IMAGE],
videoType: [VideoTypeE.H264],
audioType: [],
);
showToast('已静音'.tr);
} else {
talkExpectReq = TalkExpectReq(
videoType: [VideoTypeE.IMAGE],
videoType: [VideoTypeE.H264],
audioType: [AudioTypeE.G711],
);
}