mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-14 12:15:01 +00:00
add constructor to CodecScheduleAwareness to chang refresh timer
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user