diff --git a/lib/singletons/live_information.dart b/lib/singletons/live_information.dart index 8760c11..e18e334 100644 --- a/lib/singletons/live_information.dart +++ b/lib/singletons/live_information.dart @@ -82,7 +82,8 @@ class LiveInformation { if (audioPlayer.state != AudioWrapper_State.Playing) { if (announcementQueue.isNotEmpty) { - if (announcementQueue.first.scheduledTime != null && announcementQueue.first.scheduledTime!.isAfter(DateTime.now())) { + // Is the announcement in the queue ready to be announced? (is within 100ms of the current time) + if (announcementQueue.first.timestamp != null && announcementQueue.first.timestamp!.isAfter(DateTime.now().add(Duration(milliseconds: 100)))) { return; }