Exemple #1
0
        void IBMDStreamingH264InputCallback.H264VideoInputConnectorScanningChanged()
        {
            IDeckLinkConfiguration deckLinkConfiguration = streamingDevice as IDeckLinkConfiguration;

            if (deckLinkConfiguration == null)
            {
                return;
            }

            int scanning;

            deckLinkConfiguration.GetFlag(_BMDDeckLinkConfigurationID.bmdDeckLinkConfigVideoInputScanning, out scanning);

            if (callback != null)
            {
                callback.VideoInputConnectorScanningChanged(scanning == 1);
            }
        }
Exemple #2
0
 // Get IDeckLink Interface
 private bool GetIDeckLinkInterface()
 {
     try
     {
         deckLinkOutput = (IDeckLinkOutput)DeckLink;
         deckLinkInput  = (IDeckLinkInput)DeckLink;
         deckLinkConfig = (IDeckLinkConfiguration)DeckLink;
         IDeckLinkDisplayModeIterator displayIterator;
         deckLinkInput.GetDisplayModeIterator(out displayIterator);
         var supportedModes = new List <IDeckLinkDisplayMode>();
         deckLinkKeyer = (IDeckLinkKeyer)DeckLink;
     }
     catch
     {
         return(false);
     }
     return(true);
 }
Exemple #3
0
        void IBMDStreamingH264InputCallback.H264VideoInputConnectorChanged()
        {
            IDeckLinkConfiguration deckLinkConfiguration = streamingDevice as IDeckLinkConfiguration;

            if (deckLinkConfiguration == null)
            {
                return;
            }

            long value;

            deckLinkConfiguration.GetInt(_BMDDeckLinkConfigurationID.bmdDeckLinkConfigVideoInputConnection, out value);
            _BMDVideoConnection videoConnection = (_BMDVideoConnection)value;

            if (callback != null)
            {
                callback.VideoInputConnectorChanged(videoConnection);
            }
        }