fix:调整无音频问题
This commit is contained in:
parent
9b755e2993
commit
d27c4e2f9f
@ -214,4 +214,27 @@ 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,默认发送图像视频格式期望数据');
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user