Exemple #1
0
        public bool Startup()
        {
            logger.Debug("DeckLinkDeviceManager::Startup()");

            if (Started)
            {
                Debug.Assert(deckLinkDiscovery != null, "deckLinkDiscovery!=null");

                return(Started);
            }

            try
            {
                deckLinkDiscovery = new CDeckLinkDiscovery();
                deckLinkDiscovery.InstallDeviceNotifications(this);

                Started = true;
            }
            catch (Exception ex)
            {
                logger.Error(ex);

                Started = false;
            }

            return(Started);
        }
Exemple #2
0
        public Form1()
        {
            InitializeComponent();

            _Discovery = new CDeckLinkDiscovery();
            _GLHelper  = new CDeckLinkGLScreenPreviewHelper();

            if (_Discovery != null)
            {
                _Discovery.InstallDeviceNotifications(this);
            }

            find.Enabled       = false;
            stream.Enabled     = false;
            notifications.Text = "Please wait 2 seconds for the preview box to initialise...";

            _GLHack.Interval  = TimeSpan.FromSeconds(2).TotalMilliseconds;
            _GLHack.Elapsed  += DelayedLoad;
            _GLHack.AutoReset = false;
        }
Exemple #3
0
 public void Enable()
 {
     m_deckLinkDiscovery.InstallDeviceNotifications(this);
 }
 public DeckLinkDeviceDiscovery(IObserver <IDeckLink> observer)
 {
     Observer          = observer;
     DeckLinkDiscovery = new CDeckLinkDiscovery();
     DeckLinkDiscovery.InstallDeviceNotifications(this);
 }