diff --git a/lib/singletons/live_information.dart b/lib/singletons/live_information.dart index 5c0c0db..8760c11 100644 --- a/lib/singletons/live_information.dart +++ b/lib/singletons/live_information.dart @@ -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, );