public void StopRecording()
        {
            if (_videoSender == null)
            {
                return;
            }
            _connector.Disconnect(_videoSender, _recorder.VideoRecorder);
            _recorder.Multiplex();

            VideoFilesManager.CheckMemoryLimitForAllVideos(_configuration.VideosFolderPath);
        }
        private void MoveRecordedVideo()
        {
            string fileName = _fileName + _configuration.VideoFormat;

            if (!Directory.Exists(_configuration.VideosFolderPath))
            {
                Directory.CreateDirectory(_configuration.VideosFolderPath);
            }
            while (true)
            {
                try
                {
                    File.Move(fileName, _configuration.VideosFolderPath + fileName);
                    break;
                }
                catch (IOException) { }
            }


            VideoFilesManager.CheckMemoryLimitForAllVideos(_configuration.VideosFolderPath);
        }