diff --git a/lib/main/lockDetail/lockDetail/lockDetail_logic.dart b/lib/main/lockDetail/lockDetail/lockDetail_logic.dart index 72683016..9c11e66b 100755 --- a/lib/main/lockDetail/lockDetail/lockDetail_logic.dart +++ b/lib/main/lockDetail/lockDetail/lockDetail_logic.dart @@ -798,14 +798,6 @@ class LockDetailLogic extends BaseGetXController { void onInit() { super.onInit(); - // 初始化开关状态为当前对讲视频模式 - final currentTalkExpect = StartChartManage().getDefaultTalkExpect(); - if (currentTalkExpect.videoType.contains(VideoTypeE.H264)) { - state.useH264Mode.value = true; - } else if (currentTalkExpect.videoType.contains(VideoTypeE.IMAGE)) { - state.useH264Mode.value = false; - } - state.LockSetChangeSetRefreshLockDetailWithTypeSubscription = eventBus .on() .listen((LockSetChangeSetRefreshLockDetailWithType event) { diff --git a/lib/main/lockDetail/lockDetail/lockDetail_page.dart b/lib/main/lockDetail/lockDetail/lockDetail_page.dart index 93ea8f2f..ec09e9a3 100755 --- a/lib/main/lockDetail/lockDetail/lockDetail_page.dart +++ b/lib/main/lockDetail/lockDetail/lockDetail_page.dart @@ -507,60 +507,6 @@ class _LockDetailPageState extends State Widget skWidget() { return ListView( children: [ - // 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 || diff --git a/lib/main/lockDetail/lockDetail/lockDetail_state.dart b/lib/main/lockDetail/lockDetail/lockDetail_state.dart index a949b693..44efb77d 100755 --- a/lib/main/lockDetail/lockDetail/lockDetail_state.dart +++ b/lib/main/lockDetail/lockDetail/lockDetail_state.dart @@ -58,9 +58,6 @@ 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"];