fix:移除h264、mjpeg切换debug按钮
This commit is contained in:
parent
d27c4e2f9f
commit
203b625ddd
@ -507,60 +507,6 @@ class _LockDetailPageState extends State<LockDetailPage>
|
|||||||
Widget skWidget() {
|
Widget skWidget() {
|
||||||
return ListView(
|
return ListView(
|
||||||
children: <Widget>[
|
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(
|
Visibility(
|
||||||
visible:
|
visible:
|
||||||
(state.keyInfos.value.keyType == XSConstantMacro.keyTypeTime ||
|
(state.keyInfos.value.keyType == XSConstantMacro.keyTypeTime ||
|
||||||
|
|||||||
@ -58,9 +58,6 @@ class LockDetailState {
|
|||||||
int logCountPage = 10; // 蓝牙记录一页多少个
|
int logCountPage = 10; // 蓝牙记录一页多少个
|
||||||
RxInt nextAuthTime = 0.obs; // 下次认证时间
|
RxInt nextAuthTime = 0.obs; // 下次认证时间
|
||||||
|
|
||||||
// 视频编码模式选择开关状态
|
|
||||||
RxBool useH264Mode = true.obs; // true表示使用H264模式,false表示使用Image模式
|
|
||||||
|
|
||||||
// LockDetailState() {
|
// LockDetailState() {
|
||||||
// Map map = Get.arguments;
|
// Map map = Get.arguments;
|
||||||
// lockCount = map["lockCount"];
|
// lockCount = map["lockCount"];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user