add constructor to CodecScheduleAwareness to chang refresh timer

This commit is contained in:
Andrew Welker
2020-09-29 15:08:33 -06:00
parent b502007fff
commit 753b4e69ee
2 changed files with 9 additions and 1 deletions

View File

@@ -68,6 +68,13 @@ namespace PepperDash.Essentials.Devices.Common.Codec
_scheduleChecker = new CTimer(CheckSchedule, null, 1000, 1000); _scheduleChecker = new CTimer(CheckSchedule, null, 1000, 1000);
} }
public CodecScheduleAwareness(long pollTime)
{
Meetings = new List<Meeting>();
_scheduleChecker = new CTimer(CheckSchedule, null, pollTime, pollTime);
}
private void OnMeetingChange(eMeetingEventChangeType changeType, Meeting meeting) private void OnMeetingChange(eMeetingEventChangeType changeType, Meeting meeting)
{ {
var handler = MeetingEventChange; var handler = MeetingEventChange;

View File

@@ -22,6 +22,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
IRouting, IRouting,
IHasScheduleAwareness, IHasCodecCameras, IHasParticipants IHasScheduleAwareness, IHasCodecCameras, IHasParticipants
{ {
private const long MeetingRefreshTimer = 60000;
private const uint DefaultMeetingDurationMin = 30; private const uint DefaultMeetingDurationMin = 30;
private const string Delimiter = "\x0D\x0A"; private const string Delimiter = "\x0D\x0A";
private readonly CrestronQueue<string> _receiveQueue; private readonly CrestronQueue<string> _receiveQueue;
@@ -89,7 +90,7 @@ namespace PepperDash.Essentials.Devices.Common.VideoCodec.ZoomRoom
SelfviewIsOnFeedback = new BoolFeedback(SelfViewIsOnFeedbackFunc); SelfviewIsOnFeedback = new BoolFeedback(SelfViewIsOnFeedbackFunc);
CodecSchedule = new CodecScheduleAwareness(); CodecSchedule = new CodecScheduleAwareness(MeetingRefreshTimer);
SetUpFeedbackActions(); SetUpFeedbackActions();