From 753b4e69ee24bd89038fa644de4b7e9359ea6c55 Mon Sep 17 00:00:00 2001 From: Andrew Welker Date: Tue, 29 Sep 2020 15:08:33 -0600 Subject: [PATCH] add constructor to CodecScheduleAwareness to chang refresh timer --- .../Codec/iHasScheduleAwareness.cs | 7 +++++++ .../VideoCodec/ZoomRoom/ZoomRoom.cs | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/essentials-framework/Essentials Devices Common/Essentials Devices Common/Codec/iHasScheduleAwareness.cs b/essentials-framework/Essentials Devices Common/Essentials Devices Common/Codec/iHasScheduleAwareness.cs index 5275ab03..7d6acdc2 100644 --- a/essentials-framework/Essentials Devices Common/Essentials Devices Common/Codec/iHasScheduleAwareness.cs +++ b/essentials-framework/Essentials Devices Common/Essentials Devices Common/Codec/iHasScheduleAwareness.cs @@ -68,6 +68,13 @@ namespace PepperDash.Essentials.Devices.Common.Codec _scheduleChecker = new CTimer(CheckSchedule, null, 1000, 1000); } + public CodecScheduleAwareness(long pollTime) + { + Meetings = new List(); + + _scheduleChecker = new CTimer(CheckSchedule, null, pollTime, pollTime); + } + private void OnMeetingChange(eMeetingEventChangeType changeType, Meeting meeting) { var handler = MeetingEventChange; diff --git a/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs b/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs index 4dbe2355..efb7b94e 100644 --- a/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs +++ b/essentials-framework/Essentials Devices Common/Essentials Devices Common/VideoCodec/ZoomRoom/ZoomRoom.cs @@ -22,6 +22,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom IRouting, IHasScheduleAwareness, IHasCodecCameras, IHasParticipants { + private const long MeetingRefreshTimer = 60000; private const uint DefaultMeetingDurationMin = 30; private const string Delimiter = "\x0D\x0A"; private readonly CrestronQueue _receiveQueue; @@ -89,7 +90,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom SelfviewIsOnFeedback = new BoolFeedback(SelfViewIsOnFeedbackFunc); - CodecSchedule = new CodecScheduleAwareness(); + CodecSchedule = new CodecScheduleAwareness(MeetingRefreshTimer); SetUpFeedbackActions();