Update live_information.dart
This commit is contained in:
@@ -60,7 +60,7 @@ class LiveInformation {
|
|||||||
refreshTimer();
|
refreshTimer();
|
||||||
}
|
}
|
||||||
|
|
||||||
Timer refreshTimer() => Timer.periodic(Duration(seconds: 1), (timer) {
|
Timer refreshTimer() => Timer.periodic(Duration(milliseconds: 100), (timer) {
|
||||||
_handleAnnouncementQueue();
|
_handleAnnouncementQueue();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -78,7 +78,7 @@ class LiveInformation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void _handleAnnouncementQueue() async {
|
void _handleAnnouncementQueue() async {
|
||||||
print("Handling announcement queue");
|
// print("Handling announcement queue");
|
||||||
if (audioPlayer.state != AudioWrapper_State.Playing) {
|
if (audioPlayer.state != AudioWrapper_State.Playing) {
|
||||||
if (announcementQueue.isNotEmpty) {
|
if (announcementQueue.isNotEmpty) {
|
||||||
|
|
||||||
@@ -387,7 +387,7 @@ class LiveInformation {
|
|||||||
shortName: manualAnnouncements[index].shortName,
|
shortName: manualAnnouncements[index].shortName,
|
||||||
informationText: manualAnnouncements[index].displayText,
|
informationText: manualAnnouncements[index].displayText,
|
||||||
audioSources: manualAnnouncements[index].audioSources,
|
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),
|
timestamp: DateTime.parse(doc.$createdAt),
|
||||||
sendToServer: false,
|
sendToServer: false,
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user