Exemplo n.º 1
0
 void HdmiOutput_OutputStreamChange(EndpointOutputStream outputStream, EndpointOutputStreamEventArgs args)
 {
     if (args.EventId == EndpointOutputStreamEventIds.HorizontalResolutionFeedbackEventId || args.EventId == EndpointOutputStreamEventIds.VerticalResolutionFeedbackEventId ||
         args.EventId == EndpointOutputStreamEventIds.FramesPerSecondFeedbackEventId)
     {
         VideoOutputResolutionFeedback.FireUpdate();
     }
 }
Exemplo n.º 2
0
        void HdmiOutput_OutputStreamChange(EndpointOutputStream outputStream, EndpointOutputStreamEventArgs args)
        {
            switch (args.EventId)
            {
            case EndpointOutputStreamEventIds.FramesPerSecondFeedbackEventId:
            case EndpointOutputStreamEventIds.VerticalResolutionFeedbackEventId:
            case EndpointOutputStreamEventIds.HorizontalResolutionFeedbackEventId:
                VideoOutputResolutionFeedback.FireUpdate();
                break;

            case EndpointOutputStreamEventIds.HotplugDetectedEventId:
                if (_rmc.HdmiOutput.ConnectedDevice == null)
                {
                    return;
                }
                EdidManufacturerFeedback.FireUpdate();
                EdidNameFeedback.FireUpdate();
                EdidPreferredTimingFeedback.FireUpdate();
                EdidSerialNumberFeedback.FireUpdate();
                break;
            }
        }