fix:调整停止播放铃声

This commit is contained in:
liyi 2024-12-10 18:26:47 +08:00
parent 343e9c101a
commit 0f1dc9e666
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();
}

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();
// });
}