public override void OnButtonUp(DeckDevice deckDevice)
        {
            if (OBSUtils.IsConnected)
            {
                switch (StreamAction)
                {
                case StreamingState.Start:
                    OBSUtils.StartStreaming();
                    break;

                case StreamingState.Stop:
                    OBSUtils.StopStreaming();
                    break;

                case StreamingState.Toggle:
                    switch (ToggleStreamingAction)
                    {
                    case StreamingStateToggle.Stopped:
                        ToggleStreamingAction = StreamingStateToggle.Recording;
                        OBSUtils.StartRecording();
                        IDeckHelper.setVariable(false, atual_item, deckDevice);
                        break;

                    case StreamingStateToggle.Recording:
                        ToggleStreamingAction = StreamingStateToggle.Stopped;
                        OBSUtils.StopRecording();
                        IDeckHelper.setVariable(true, atual_item, deckDevice);
                        break;
                    }
                    break;
                }
            }
        }
Exemplo n.º 2
0
        public override void OnButtonUp(DeckDevice deckDevice)
        {
            if (OBSUtils.IsConnected)
            {
                switch (RecordAction)
                {
                case RecordingState.Start:
                    OBSUtils.StartRecording();
                    break;

                case RecordingState.Stop:
                    OBSUtils.StopRecording();
                    break;
                }
            }
        }