Esempio n. 1
0
        public FFMpeg(string urn, ITimeProvider timeProvider, ILogging logging, IFFMpegService ffmpegService,
                      IAudioPresetProvider presetProvider) : base(urn, Type, timeProvider, logging)
        {
            if (logging == null)
            {
                throw new ArgumentNullException(nameof(logging));
            }

            if (ffmpegService == null)
            {
                throw new ArgumentNullException(nameof(ffmpegService));
            }

            if (presetProvider == null)
            {
                throw new ArgumentNullException(nameof(presetProvider));
            }

            _ffmpegService     = ffmpegService;
            _audioDestinations = presetProvider.AsDictionary();
        }
Esempio n. 2
0
 public FFMpegHealthCheck(IFFMpegService ffmpegService, IEnumerable <IPlugin> plugins)
 {
     _ffmpegService = ffmpegService;
     _pluginCount   = plugins.Count(p => p.PluginType == "ffmpeg");
 }