/// <summary> Initializes a new instance of the <see cref="ScoreboardControlPanelView"/> class. </summary>
        public ScoreboardControlPanelView()
        {
            this.InitializeComponent();

            TimedBroadcasterPlugin plugin = TimedBroadcasterPlugin.CreateInstance(
                "BCB458E4-13D9-11E1-BF80-790C4824019B", this.contentView, 1380, 112, 50);

            if (plugin != null)
            {
                plugin.StartTimer();
                this.contentView.PreviewMouseDown += this.contentView_PreviewMouseDown;
                this.contentView.PreviewMouseMove += this.contentView_PreviewMouseMove;
            }
        }
Exemplo n.º 2
0
        public MainWindow()
        {
            InitializeComponent();

            const int OutputWidth  = 1000;
            const int OutputHeight = 200;

            // Outputs a 1000x200 image every 50ms (20 FPS)
            plugin = TimedBroadcasterPlugin.CreateInstance(
                "livesplit", new irrelevant(), OutputWidth, OutputHeight, 50);

            if (this.plugin != null)
            {
                // The correct version of XSplit was installed, so we can start our output.
                this.plugin.StartTimer();
            }
        }
Exemplo n.º 3
0
        public LiveViewManager()
        {
            _register    = new Dictionary <object, LiveViewWnd>();
            _recordtoRam = new Dictionary <ICameraDevice, bool>();
            _hostMode    = new Dictionary <ICameraDevice, bool>();
            _presets     = new Dictionary <ICameraDevice, CameraPreset>();
            try
            {
                var plugin = TimedBroadcasterPlugin.CreateInstance(
                    "F752DC1B-438E-4014-914B-48F249D4C8F1", null, 1380, 112, 50);

                if (plugin != null)
                {
                    plugin.StartTimer();
                }
            }
            catch (Exception exception)
            {
                Log.Error("Unable to start XSplit ", exception);
            }
        }
Exemplo n.º 4
0
        public StopMotionManager()
        {
            _register      = new Dictionary <object, StopMotionWindow>();
            _recordtoRam   = new Dictionary <ICameraDevice, bool>();
            _hostMode      = new Dictionary <ICameraDevice, bool>();
            _presets       = new Dictionary <ICameraDevice, CameraPreset>();
            PreviewRequest = new Dictionary <ICameraDevice, bool>();
            Preview        = new Dictionary <ICameraDevice, string>();
            try
            {
                // xsplit plugin support
                var plugin = TimedBroadcasterPlugin.CreateInstance(
                    "F752DC1B-438E-4014-914B-48F249D4C8F1", null, 1380, 112, 50);

                if (plugin != null)
                {
                    plugin.StartTimer();
                }
            }
            catch (Exception exception)
            {
                Log.Error("Unable to start XSplit ", exception);
            }
        }