fix:移除h264、mjpeg切换debug按钮
This commit is contained in:
parent
7e81313372
commit
51bc375d31
@ -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) {
|
||||
|
||||
@ -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 ||
|
||||
|
||||
@ -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"];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user