Beispiel #1
0
        public Recorder Create(string videoName)
        {
            var fileName = RemoveForbiddenSymbols(videoName) + DefaultExtension;

            var classSubFolder = PrepareClassSubfolder();

            var path = Path.Combine(classSubFolder, fileName);

            var encoder = EncoderProvider.GetAvailableEncoder(_configurator);

            return(new Recorder(path, encoder, _configurator));
        }
        public Recorder Create(string testName)
        {
            var fileName = testName;

            if (!fileName.Contains("."))
            {
                fileName = fileName + DefaultExtension;
            }

            var path    = Path.Combine(_defaultOutputPath, fileName);
            var encoder = EncoderProvider.GetAvailableEncoder(_configurator);

            return(new Recorder(path, encoder, _configurator));
        }