fix:移除h264、mjpeg切换debug按钮

This commit is contained in:
liyi 2025-04-28 09:21:11 +08:00
parent 7e81313372
commit 51bc375d31
3 changed files with 0 additions and 65 deletions

View File

@ -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<LockSetChangeSetRefreshLockDetailWithType>()
.listen((LockSetChangeSetRefreshLockDetailWithType event) {

View File

@ -507,60 +507,6 @@ 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,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"];