fix:调整点击静音时发送期望数据被改为iamge的问题
This commit is contained in:
parent
7f7bb49d8c
commit
79f2d95314
@ -20,8 +20,4 @@ class TalkConstant {
|
|||||||
videoType: [VideoTypeE.H264_720P],
|
videoType: [VideoTypeE.H264_720P],
|
||||||
audioType: [AudioTypeE.G711],
|
audioType: [AudioTypeE.G711],
|
||||||
);
|
);
|
||||||
static TalkExpectReq H264_720P_Expect = TalkExpectReq(
|
|
||||||
videoType: [VideoTypeE.H264_720P],
|
|
||||||
audioType: [AudioTypeE.G711],
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -214,27 +214,4 @@ class UdpTalkRequestHandler extends ScpMessageBaseHandle
|
|||||||
print('app主动发请求,收到回复后发送的预期数据=======锁不支持H264和MJPEG,默认发送图像视频格式期望数据');
|
print('app主动发请求,收到回复后发送的预期数据=======锁不支持H264和MJPEG,默认发送图像视频格式期望数据');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// app主动发请求,收到回复后发送的预期数据
|
|
||||||
void _handleResponseSendExpect() {
|
|
||||||
final LockListInfoItemEntity currentKeyInfo =
|
|
||||||
CommonDataManage().currentKeyInfo;
|
|
||||||
final isH264 = currentKeyInfo.lockFeature?.isH264 == 1;
|
|
||||||
final isMJpeg = currentKeyInfo.lockFeature?.isMJpeg == 1;
|
|
||||||
|
|
||||||
// 优先使用H264,其次是MJPEG
|
|
||||||
if (isH264) {
|
|
||||||
// 锁支持H264,发送H264视频和G711音频期望
|
|
||||||
startChartManage.sendH264VideoAndG711AudioTalkExpectData();
|
|
||||||
print('锁支持H264,发送H264视频格式期望数据');
|
|
||||||
} else if (isMJpeg) {
|
|
||||||
// 锁只支持MJPEG,发送图像视频和G711音频期望
|
|
||||||
startChartManage.sendImageVideoAndG711AudioTalkExpectData();
|
|
||||||
print('锁不支持H264,支持MJPEG,发送MJPEG视频格式期望数据');
|
|
||||||
} else {
|
|
||||||
// 默认使用图像视频
|
|
||||||
startChartManage.sendImageVideoAndG711AudioTalkExpectData();
|
|
||||||
print('锁不支持H264和MJPEG,默认发送图像视频格式期望数据');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -519,13 +519,13 @@ class TalkViewNativeDecodeLogic extends BaseGetXController {
|
|||||||
state.isOpenVoice.value = !state.isOpenVoice.value;
|
state.isOpenVoice.value = !state.isOpenVoice.value;
|
||||||
if (!state.isOpenVoice.value) {
|
if (!state.isOpenVoice.value) {
|
||||||
talkExpectReq = TalkExpectReq(
|
talkExpectReq = TalkExpectReq(
|
||||||
videoType: [VideoTypeE.IMAGE],
|
videoType: [VideoTypeE.H264],
|
||||||
audioType: [],
|
audioType: [],
|
||||||
);
|
);
|
||||||
showToast('已静音'.tr);
|
showToast('已静音'.tr);
|
||||||
} else {
|
} else {
|
||||||
talkExpectReq = TalkExpectReq(
|
talkExpectReq = TalkExpectReq(
|
||||||
videoType: [VideoTypeE.IMAGE],
|
videoType: [VideoTypeE.H264],
|
||||||
audioType: [AudioTypeE.G711],
|
audioType: [AudioTypeE.G711],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user