HDCP disables from config on HDMD4x1. Appears to be working

This commit is contained in:
Heath Volmer
2018-02-07 16:17:41 -07:00
parent 88e82fb398
commit ba1e8646e5
2 changed files with 3 additions and 1 deletions

View File

@@ -50,13 +50,15 @@ namespace PepperDash.Essentials.DM.Chassis
foreach (var kvp in props.Inputs)
{
// strip "hdmiIn"
Debug.Console(0, "**************** {0}", kvp.Key);
var inputNum = Convert.ToUInt32(kvp.Key.Substring(6));
var port = chassis.HdmiInputs[inputNum].HdmiInputPort;
// set hdcp disables
if (kvp.Value.DisableHdcp)
{
Debug.Console(0, this, "Configuration disables HDCP support on {0}", kvp.Key);
port.HdcpSupportOff();
}
else
port.HdcpSupportOn();
}