refactor(Essentials_DM): Add event IDS and some logging to get resolution feedback

This commit is contained in:
Andrew Welker
2021-09-09 07:44:05 -06:00
parent db3d96d448
commit fa6cabe246

View File

@@ -1051,14 +1051,19 @@ namespace PepperDash.Essentials.DM
Debug.Console(2, this, "No index of {0} found in InputStreamCardStateFeedbacks"); Debug.Console(2, this, "No index of {0} found in InputStreamCardStateFeedbacks");
break; break;
} }
case DMInputEventIds.HorizontalResolutionFeedbackEventId:
case DMInputEventIds.VerticalResolutionFeedbackEventId:
case DMInputEventIds.FramesPerSecondFeedbackEventId:
case DMInputEventIds.ResolutionEventId: case DMInputEventIds.ResolutionEventId:
{ {
Debug.Console(1, this, "Input {0} resolution updated", args.Number);
var inputPort = var inputPort =
InputPorts.Cast<RoutingInputPortWithVideoStatuses>() InputPorts.Cast<RoutingInputPortWithVideoStatuses>()
.FirstOrDefault((ip) => ip.Key.Contains(String.Format("inputCard{0}", args.Number))); .FirstOrDefault((ip) => ip.Key.Contains(String.Format("inputCard{0}", args.Number)));
if (inputPort != null) if (inputPort != null)
{ {
Debug.Console(1, this, "Updating resolution feedback for input {0}", args.Number);
inputPort.VideoStatus.VideoResolutionFeedback.FireUpdate(); inputPort.VideoStatus.VideoResolutionFeedback.FireUpdate();
} }
break; break;