fix:增加视频日志中的视频缩略图、修复监控时锁板不在线状态不变更的问题

This commit is contained in:
liyi 2025-01-22 16:11:57 +08:00
parent da6b92761d
commit b16aa114eb
4 changed files with 82 additions and 78 deletions

View File

@ -188,17 +188,20 @@ class ConfiguringWifiLogic extends BaseGetXController {
state.getGatewayConfigurationStr = "{\"userPeerld\": \"$appPeerId\"}";
}
BlueManage().blueSendData(BlueManage().connectDeviceName,
(BluetoothConnectionState connectionState) async {
if (connectionState == BluetoothConnectionState.connected) {
IoSenderManage.gatewayConfiguringWifiCommand(
ssid: state.wifiNameController.text,
password: state.wifiPWDController.text,
gatewayConfigurationStr: state.getGatewayConfigurationStr,
);
EasyLoading.show();
}
}, isAddEquipment: true);
BlueManage().blueSendData(
BlueManage().connectDeviceName,
(BluetoothConnectionState connectionState) async {
if (connectionState == BluetoothConnectionState.connected) {
IoSenderManage.gatewayConfiguringWifiCommand(
ssid: state.wifiNameController.text,
password: state.wifiPWDController.text,
gatewayConfigurationStr: state.getGatewayConfigurationStr,
);
EasyLoading.show();
}
},
isAddEquipment: true,
);
}
//

View File

@ -36,6 +36,7 @@ class TalkDataOverTimeTimerManager {
talkStatus.setNotTalkData();
talkStatus.setEnd();
AudioPlayerManager().stopRingtone();
Get.back();
}
//

View File

@ -45,7 +45,6 @@ class TalkePingOverTimeTimerManager {
//
void start() {
AppLog.log('启动talkping判断');
//
_timer?.cancel();
_timer = Timer(timeout, onTimeout);

View File

@ -255,72 +255,73 @@ class _TalkViewPageState extends State<TalkViewPage>
)
: Container()),
//ToDo:
Visibility(
visible: true,
child: Positioned(
top: 20, //
left: 20,
right: 20, //
child: Container(
height: 100, // 100
color: Colors.black.withOpacity(0.5), //
padding: const EdgeInsets.all(10), //
child: Consumer<DebugInfoModel>(
builder: (BuildContext context, DebugInfoModel debugInfo,
Widget? child) {
return Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
Text(
'recv ${debugInfo.recvDataRate}KB/s [${debugInfo.recvPacketCount}]',
style: const TextStyle(
color: Colors.white), //
),
Text(
'send ${debugInfo.sendDataRate}KB/s [${debugInfo.sendPacketCount}]',
style: const TextStyle(
color: Colors.white), //
),
],
);
},
),
),
)),
//
Positioned(
top: 120,
left: 20,
right: 20,
child: Container(
height: 50,
color: Colors.black.withOpacity(0.5),
padding: const EdgeInsets.all(10),
child: StreamBuilder<int>(
stream: _latencyStream,
builder: (BuildContext context, AsyncSnapshot<int> snapshot) {
if (snapshot.connectionState == ConnectionState.waiting) {
return const Text(
'检测服务器延迟中...',
style: TextStyle(color: Colors.white),
);
} else if (snapshot.hasError ||
!snapshot.hasData ||
snapshot.data == -1) {
return const Text(
'服务器延迟检测失败',
style: TextStyle(color: Colors.white),
);
} else {
return Text(
'服务器延迟: ${snapshot.data} ms',
style: const TextStyle(color: Colors.white),
);
}
},
),
),
),
// Visibility(
// visible: true,
// child: Positioned(
// top: 20, //
// left: 20,
// right: 20, //
// child: Container(
// height: 100, // 100
// color: Colors.black.withOpacity(0.5), //
// padding: const EdgeInsets.all(10), //
// child: Consumer<DebugInfoModel>(
// builder: (BuildContext context, DebugInfoModel debugInfo,
// Widget? child) {
// return Column(
// crossAxisAlignment: CrossAxisAlignment.start,
// children: <Widget>[
// Text(
// 'recv ${debugInfo.recvDataRate}KB/s [${debugInfo.recvPacketCount}]',
// style: const TextStyle(
// color: Colors.white), //
// ),
// Text(
// 'send ${debugInfo.sendDataRate}KB/s [${debugInfo.sendPacketCount}]',
// style: const TextStyle(
// color: Colors.white), //
// ),
// ],
// );
// },
// ),
// ),
// ),
// ),
// //
// Positioned(
// top: 120,
// left: 20,
// right: 20,
// child: Container(
// height: 50,
// color: Colors.black.withOpacity(0.5),
// padding: const EdgeInsets.all(10),
// child: StreamBuilder<int>(
// stream: _latencyStream,
// builder: (BuildContext context, AsyncSnapshot<int> snapshot) {
// if (snapshot.connectionState == ConnectionState.waiting) {
// return const Text(
// '检测服务器延迟中...',
// style: TextStyle(color: Colors.white),
// );
// } else if (snapshot.hasError ||
// !snapshot.hasData ||
// snapshot.data == -1) {
// return const Text(
// '服务器延迟检测失败',
// style: TextStyle(color: Colors.white),
// );
// } else {
// return Text(
// '服务器延迟: ${snapshot.data} ms',
// style: const TextStyle(color: Colors.white),
// );
// }
// },
// ),
// ),
// ),
],
),
),