void StreamCec_CecChange(Cec cecDevice, CecEventArgs args) { if (args.EventId == CecEventIds.CecMessageReceivedEventId) { OnDataReceived(cecDevice.Received.StringValue); } else if (args.EventId == CecEventIds.ErrorFeedbackEventId) { if (cecDevice.ErrorFeedback.BoolValue) { Debug.Console(2, this, "CEC NAK Error"); } } }
void StreamCec_CecChange(Cec cecDevice, CecEventArgs args) { switch (args.EventId) { case CecEventIds.ErrorFeedbackEventId: CEC_Err_fb = HDMIInput.HdmiInputPort.StreamCec.ErrorFeedback.BoolValue; break; case CecEventIds.CecMessageReceivedEventId: Receive_CEC_Message_fb = HDMIInput.HdmiInputPort.StreamCec.Received.StringValue; break; default: break; } }
void HDMIStreamCec_CecChange(Cec cecDevice, CecEventArgs args) { switch (args.EventId) { case CecEventIds.ErrorFeedbackEventId: HDMI_CEC_Error_fb = _DMOutput.HdmiOutputPort.StreamCec.ErrorFeedback.BoolValue; break; case CecEventIds.CecMessageReceivedEventId: HDMI_CEC_Receive_fb = _DMOutput.HdmiOutputPort.StreamCec.Received.StringValue; break; case CecEventIds.PhysicalAddressEventId: HDMI_CEC_Display_Physical_Address_fb = _DMOutput.HdmiOutputPort.StreamCec.PhysicalAddress.StringValue; break; default: break; } }
public AppleTV(Cec cecPort) { _cec = cecPort; }
#pragma warning restore 649 #endregion #region Constructors public ConnectedDevice(CodecApiElement parent, string propertyName) : base(parent, propertyName) { _cec = new Cec(this, "CEC"); }
public CECDevice(Cec Cec) { _Cec = Cec; _Cec.CecChange += new CecChangeEventHandler(_Cec_CecChange); }