fix:增加视频日志中的视频缩略图、修复监控时锁板不在线状态不变更的问题
This commit is contained in:
parent
da6b92761d
commit
b16aa114eb
@ -188,17 +188,20 @@ class ConfiguringWifiLogic extends BaseGetXController {
|
|||||||
state.getGatewayConfigurationStr = "{\"userPeerld\": \"$appPeerId\"}";
|
state.getGatewayConfigurationStr = "{\"userPeerld\": \"$appPeerId\"}";
|
||||||
}
|
}
|
||||||
|
|
||||||
BlueManage().blueSendData(BlueManage().connectDeviceName,
|
BlueManage().blueSendData(
|
||||||
(BluetoothConnectionState connectionState) async {
|
BlueManage().connectDeviceName,
|
||||||
if (connectionState == BluetoothConnectionState.connected) {
|
(BluetoothConnectionState connectionState) async {
|
||||||
IoSenderManage.gatewayConfiguringWifiCommand(
|
if (connectionState == BluetoothConnectionState.connected) {
|
||||||
ssid: state.wifiNameController.text,
|
IoSenderManage.gatewayConfiguringWifiCommand(
|
||||||
password: state.wifiPWDController.text,
|
ssid: state.wifiNameController.text,
|
||||||
gatewayConfigurationStr: state.getGatewayConfigurationStr,
|
password: state.wifiPWDController.text,
|
||||||
);
|
gatewayConfigurationStr: state.getGatewayConfigurationStr,
|
||||||
EasyLoading.show();
|
);
|
||||||
}
|
EasyLoading.show();
|
||||||
}, isAddEquipment: true);
|
}
|
||||||
|
},
|
||||||
|
isAddEquipment: true,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取设备状态
|
// 获取设备状态
|
||||||
|
|||||||
@ -36,6 +36,7 @@ class TalkDataOverTimeTimerManager {
|
|||||||
talkStatus.setNotTalkData();
|
talkStatus.setNotTalkData();
|
||||||
talkStatus.setEnd();
|
talkStatus.setEnd();
|
||||||
AudioPlayerManager().stopRingtone();
|
AudioPlayerManager().stopRingtone();
|
||||||
|
Get.back();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 启动定时器
|
// 启动定时器
|
||||||
|
|||||||
@ -45,7 +45,6 @@ class TalkePingOverTimeTimerManager {
|
|||||||
|
|
||||||
// 启动定时器
|
// 启动定时器
|
||||||
void start() {
|
void start() {
|
||||||
AppLog.log('启动talkping判断');
|
|
||||||
// 取消之前的定时器
|
// 取消之前的定时器
|
||||||
_timer?.cancel();
|
_timer?.cancel();
|
||||||
_timer = Timer(timeout, onTimeout);
|
_timer = Timer(timeout, onTimeout);
|
||||||
|
|||||||
@ -255,72 +255,73 @@ class _TalkViewPageState extends State<TalkViewPage>
|
|||||||
)
|
)
|
||||||
: Container()),
|
: Container()),
|
||||||
//ToDo: 增加对讲调试、正式可删除
|
//ToDo: 增加对讲调试、正式可删除
|
||||||
Visibility(
|
// Visibility(
|
||||||
visible: true,
|
// visible: true,
|
||||||
child: Positioned(
|
// child: Positioned(
|
||||||
top: 20, // 设置在顶部
|
// top: 20, // 设置在顶部
|
||||||
left: 20,
|
// left: 20,
|
||||||
right: 20, // 确保调试信息在屏幕宽度内居中
|
// right: 20, // 确保调试信息在屏幕宽度内居中
|
||||||
child: Container(
|
// child: Container(
|
||||||
height: 100, // 设置高度为 100
|
// height: 100, // 设置高度为 100
|
||||||
color: Colors.black.withOpacity(0.5), // 可选:设置背景颜色和透明度
|
// color: Colors.black.withOpacity(0.5), // 可选:设置背景颜色和透明度
|
||||||
padding: const EdgeInsets.all(10), // 可选:设置内边距
|
// padding: const EdgeInsets.all(10), // 可选:设置内边距
|
||||||
child: Consumer<DebugInfoModel>(
|
// child: Consumer<DebugInfoModel>(
|
||||||
builder: (BuildContext context, DebugInfoModel debugInfo,
|
// builder: (BuildContext context, DebugInfoModel debugInfo,
|
||||||
Widget? child) {
|
// Widget? child) {
|
||||||
return Column(
|
// return Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: <Widget>[
|
// children: <Widget>[
|
||||||
Text(
|
// Text(
|
||||||
'recv ${debugInfo.recvDataRate}KB/s [${debugInfo.recvPacketCount}]',
|
// 'recv ${debugInfo.recvDataRate}KB/s [${debugInfo.recvPacketCount}]',
|
||||||
style: const TextStyle(
|
// style: const TextStyle(
|
||||||
color: Colors.white), // 设置文本颜色为白色
|
// color: Colors.white), // 设置文本颜色为白色
|
||||||
),
|
// ),
|
||||||
Text(
|
// Text(
|
||||||
'send ${debugInfo.sendDataRate}KB/s [${debugInfo.sendPacketCount}]',
|
// 'send ${debugInfo.sendDataRate}KB/s [${debugInfo.sendPacketCount}]',
|
||||||
style: const TextStyle(
|
// style: const TextStyle(
|
||||||
color: Colors.white), // 设置文本颜色为白色
|
// color: Colors.white), // 设置文本颜色为白色
|
||||||
),
|
// ),
|
||||||
],
|
// ],
|
||||||
);
|
// );
|
||||||
},
|
// },
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
)),
|
// ),
|
||||||
// 添加服务器延迟检测
|
// ),
|
||||||
Positioned(
|
// // 添加服务器延迟检测
|
||||||
top: 120,
|
// Positioned(
|
||||||
left: 20,
|
// top: 120,
|
||||||
right: 20,
|
// left: 20,
|
||||||
child: Container(
|
// right: 20,
|
||||||
height: 50,
|
// child: Container(
|
||||||
color: Colors.black.withOpacity(0.5),
|
// height: 50,
|
||||||
padding: const EdgeInsets.all(10),
|
// color: Colors.black.withOpacity(0.5),
|
||||||
child: StreamBuilder<int>(
|
// padding: const EdgeInsets.all(10),
|
||||||
stream: _latencyStream,
|
// child: StreamBuilder<int>(
|
||||||
builder: (BuildContext context, AsyncSnapshot<int> snapshot) {
|
// stream: _latencyStream,
|
||||||
if (snapshot.connectionState == ConnectionState.waiting) {
|
// builder: (BuildContext context, AsyncSnapshot<int> snapshot) {
|
||||||
return const Text(
|
// if (snapshot.connectionState == ConnectionState.waiting) {
|
||||||
'检测服务器延迟中...',
|
// return const Text(
|
||||||
style: TextStyle(color: Colors.white),
|
// '检测服务器延迟中...',
|
||||||
);
|
// style: TextStyle(color: Colors.white),
|
||||||
} else if (snapshot.hasError ||
|
// );
|
||||||
!snapshot.hasData ||
|
// } else if (snapshot.hasError ||
|
||||||
snapshot.data == -1) {
|
// !snapshot.hasData ||
|
||||||
return const Text(
|
// snapshot.data == -1) {
|
||||||
'服务器延迟检测失败',
|
// return const Text(
|
||||||
style: TextStyle(color: Colors.white),
|
// '服务器延迟检测失败',
|
||||||
);
|
// style: TextStyle(color: Colors.white),
|
||||||
} else {
|
// );
|
||||||
return Text(
|
// } else {
|
||||||
'服务器延迟: ${snapshot.data} ms',
|
// return Text(
|
||||||
style: const TextStyle(color: Colors.white),
|
// '服务器延迟: ${snapshot.data} ms',
|
||||||
);
|
// style: const TextStyle(color: Colors.white),
|
||||||
}
|
// );
|
||||||
},
|
// }
|
||||||
),
|
// },
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user