public WebcamRecorder(VideoRecorderSettings settings) { this.Settings = settings; this.Initialize(); RunTaskOnInterval(this.RestartCapture, this.Settings.VideoLength); }