fix:增加原生插件解码的页面、增加h264、mjpeg切换的debug按钮

This commit is contained in:
liyi 2025-04-25 10:21:05 +08:00
parent 443b14450b
commit 9b755e2993
2 changed files with 57 additions and 0 deletions

View File

@ -507,6 +507,60 @@ class _LockDetailPageState extends State<LockDetailPage>
Widget skWidget() {
return ListView(
children: <Widget>[
// Container(
// padding: EdgeInsets.symmetric(vertical: 15, horizontal: 20),
// margin: EdgeInsets.only(top: 10, bottom: 10),
// decoration: BoxDecoration(
// color: Colors.white,
// borderRadius: BorderRadius.circular(10),
// boxShadow: [
// BoxShadow(
// color: Colors.black.withOpacity(0.05),
// blurRadius: 5,
// offset: Offset(0, 2),
// ),
// ],
// ),
// child: Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
// children: [
// Text('对讲视频模式'.tr,
// style: TextStyle(fontSize: 16, fontWeight: FontWeight.bold)),
// Row(
// children: [
// Text('mjpeg',
// style: TextStyle(
// fontSize: 14,
// color: !state.useH264Mode.value
// ? AppColors.mainColor
// : Colors.grey)),
// Obx(() => Switch(
// value: state.useH264Mode.value,
// activeColor: AppColors.mainColor,
// onChanged: (value) {
// state.useH264Mode.value = value;
// if (value) {
// // 使H264模式
// StartChartManage()
// .sendH264VideoAndG711AudioTalkExpectData();
// } else {
// // 使Image模式
// StartChartManage()
// .sendImageVideoAndG711AudioTalkExpectData();
// }
// },
// )),
// Text('H264'.tr,
// style: TextStyle(
// fontSize: 14,
// color: state.useH264Mode.value
// ? AppColors.mainColor
// : Colors.grey)),
// ],
// ),
// ],
// ),
// ),
Visibility(
visible:
(state.keyInfos.value.keyType == XSConstantMacro.keyTypeTime ||

View File

@ -58,6 +58,9 @@ class LockDetailState {
int logCountPage = 10; //
RxInt nextAuthTime = 0.obs; //
//
RxBool useH264Mode = true.obs; // true表示使用H264模式false表示使用Image模式
// LockDetailState() {
// Map map = Get.arguments;
// lockCount = map["lockCount"];