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\"}"; 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,
);
} }
// //

View File

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

View File

@ -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);

View File

@ -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),
} // );
}, // }
), // },
), // ),
), // ),
// ),
], ],
), ),
), ),