Example #1
0
        public override void Execute()
        {
            var isStarted = false;

            // sleep to make sure the pausing is complete
            while (Store.Data.Record.OutputAndEncoders.obsOutput != null)
            {
                Thread.Sleep(100);
            }

            var baseRecordingParameters = new BaseRecordingParameters
            {
                CropTop           = CropTop,
                CropRight         = CropRight,
                CropLeft          = CropLeft,
                CropBottom        = CropBottom,
                FrameRate         = FrameRate,
                OutputWidth       = OutputWidth,
                OutputHeight      = OutputHeight,
                CanvasWidth       = CanvasWidth,
                CanvasHeight      = CanvasHeight,
                VideoOutputFolder = Store.Data.Record.VideoOutputFolder,
                ScreenX           = ScreenX,
                ScreenY           = ScreenY
            };

            IBaseRecordingService service = RecordingFactory.Make(Store.Data.Webcam.IsWebcamOnly, baseRecordingParameters);

            isStarted = service.StartRecording();

            EmitService.EmitStatusResponse(AvailableCommand.ResumeRecording, isStarted);
        }
Example #2
0
        public override void Execute()
        {
            if (Store.Data.Record.IsPausing)
            {
                return;
            }

            Store.Data.Record.IsPausing = true;

            this.StopOutput();

            EmitService.EmitStatusResponse(AvailableCommand.PauseRecording, true, "Paused");
        }
        public override void Execute()
        {
            var baseRecordingParameters = new BaseRecordingParameters
            {
                CropTop           = CropTop,
                CropRight         = CropRight,
                CropLeft          = CropLeft,
                CropBottom        = CropBottom,
                FrameRate         = FrameRate,
                OutputWidth       = OutputWidth,
                OutputHeight      = OutputHeight,
                CanvasWidth       = CanvasWidth,
                CanvasHeight      = CanvasHeight,
                VideoOutputFolder = VideoOutputFolder,
                ScreenX           = ScreenX,
                ScreenY           = ScreenY
            };

            IBaseRecordingService service = RecordingFactory.Make(Store.Data.Webcam.IsWebcamOnly, baseRecordingParameters);
            var isStarted = service.StartRecording();

            EmitService.EmitStatusResponse(AvailableCommand.StartRecording, isStarted);
        }
Example #4
0
 protected override void OutputStopped()
 {
     VideoService.CancelRecording();
     EmitService.EmitStatusResponse(AvailableCommand.CancelRecording, true);
 }