Update live_information.dart
This commit is contained in:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user