Merge branch 'develop_liyi' of http://code.star-lock.cn/StarlockTeam/app-starlock into develop_liyi

This commit is contained in:
“DaisyWu” 2024-12-10 18:34:17 +08:00
commit 165f9dd080
4 changed files with 12 additions and 3 deletions

View File

@ -243,14 +243,13 @@ class _StarLockLoginPageState extends State<StarLockLoginPage> {
},
),
SubmitBtn(
btnName: '发送对讲请求',
btnName: '发送对讲请求1',
onClick: () {
StartChartManage().sendCallRequestMessage(
ToPeerId: 'GCvA1LeqU1P9bUvxGEEfW41zBqBAiev3enWWuG6k2ekM',
ToPeerId: 'CqKJUADeUZsHrSD4SEVnPBr73fbsHNUXCEq9kyCtE3wp',
);
},
),
SizedBox(height: 50.w),
Row(
mainAxisAlignment: MainAxisAlignment.center,

View File

@ -32,6 +32,8 @@ class UdpTalkAcceptHandler extends ScpMessageBaseHandle
_handleCheckTalkDataTimer();
//
_handleStartSendTalkExpectDataRequest();
//
stopRingtone();
//
talkStatus.setDuringCall();
stopRingtone();

View File

@ -22,6 +22,7 @@ class UdpTalkRejectHandler extends ScpMessageBaseHandle
startChartManage.stopTalkPingMessageTimer();
startChartManage.stopTalkExpectMessageTimer();
talkStatus.setRejected();
stopRingtone();
}
@override
@ -31,6 +32,7 @@ class UdpTalkRejectHandler extends ScpMessageBaseHandle
talkStatus.setRejected();
startChartManage.stopTalkPingMessageTimer();
startChartManage.stopTalkExpectMessageTimer();
stopRingtone();
}
@override

View File

@ -32,6 +32,12 @@ class UdpTalkRequestHandler extends ScpMessageBaseHandle
// Future.delayed(Duration(seconds: 1), () {
// startChartManage.sendTalkAcceptMessage();
// // startChartManage.sendTalkRejectMessage();
// });
//
// Future.delayed(Duration(seconds: 5), () {
// startChartManage.sendTalkHangupMessage();
// // startChartManage.sendTalkRejectMessage();
// });
}