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); }
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); }