Update live_information.dart

This commit is contained in:
ImBenji
2024-02-28 05:28:46 +00:00
parent 8675587ef5
commit 074b19ae92

View File

@@ -60,7 +60,7 @@ class LiveInformation {
refreshTimer();
}
Timer refreshTimer() => Timer.periodic(Duration(seconds: 1), (timer) {
Timer refreshTimer() => Timer.periodic(Duration(milliseconds: 100), (timer) {
_handleAnnouncementQueue();
});
@@ -78,7 +78,7 @@ class LiveInformation {
}
void _handleAnnouncementQueue() async {
print("Handling announcement queue");
// print("Handling announcement queue");
if (audioPlayer.state != AudioWrapper_State.Playing) {
if (announcementQueue.isNotEmpty) {
@@ -387,7 +387,7 @@ class LiveInformation {
shortName: manualAnnouncements[index].shortName,
informationText: manualAnnouncements[index].displayText,
audioSources: manualAnnouncements[index].audioSources,
scheduledTime: doc.data["ScedhuledTime"] != null ? DateTime.parse(doc.data["ScheduledTime"]) : null,
scheduledTime: doc.data["ScheduledTime"] != null ? DateTime.parse(doc.data["ScheduledTime"]) : null,
timestamp: DateTime.parse(doc.$createdAt),
sendToServer: false,
);