Update live_information.dart
This commit is contained in:
parent
8675587ef5
commit
074b19ae92
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue