private ServiceClient(ServiceOption option, IFfmpeg ffmpeg, HttpMessageHandler httpMessageHandler)
 {
     _option     = option;
     _ffmpeg     = ffmpeg;
     _httpClient = new HttpClient(httpMessageHandler);
     _httpClient.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.86 Safari/537.36");
 }
Ejemplo n.º 2
0
        public EncodeStep(IStepMediator mediator, IEncodeWebClient webClient, IFfmpeg ffmpeg, IWatchDogTimer watchDogTimer) :
            base(mediator, webClient)
        {
            Mediator.AddEncodeStep(this);

            _ffmpeg        = ffmpeg;
            _watchDogTimer = watchDogTimer;
        }
Ejemplo n.º 3
0
 public PipelineStrategy(
     IStepMediator stepMediator, IEncodeWebClient webClient,
     IEncodeCreatorFactory creatorFactory, IFfmpeg ffmpeg,
     IWatchDogTimer watchDogTimer, IFileSystem fileSystem,
     ITempFileManager tempFileManager, IPortalBackendSettings settings,
     IFileWrapper fileWrapper)
 {
     _stepMediator    = stepMediator;
     _webClient       = webClient;
     _creatorFactory  = creatorFactory;
     _ffmpeg          = ffmpeg;
     _watchDogTimer   = watchDogTimer;
     _fileSystem      = fileSystem;
     _tempFileManager = tempFileManager;
     _settings        = settings;
     _fileWrapper     = fileWrapper;
 }
Ejemplo n.º 4
0
 public PipelineStrategy(
     IStepMediator stepMediator, IEncodeWebClient webClient,
     IEncodeCreatorFactory creatorFactory, IFfmpeg ffmpeg,
     IWatchDogTimer watchDogTimer, IFileSystem fileSystem,
     ITempFileManager tempFileManager, IPortalBackendSettings settings,
     IFileWrapper fileWrapper)
 {
     _stepMediator = stepMediator;
     _webClient = webClient;
     _creatorFactory = creatorFactory;
     _ffmpeg = ffmpeg;
     _watchDogTimer = watchDogTimer;
     _fileSystem = fileSystem;
     _tempFileManager = tempFileManager;
     _settings = settings;
     _fileWrapper = fileWrapper;
 }
Ejemplo n.º 5
0
 public VideoInfo(Uri playlistUri, HttpClient httpClient, IFfmpeg ffmpeg)
 {
     _playlistUri = playlistUri;
     _httpClient  = httpClient;
     _ffmpeg      = ffmpeg;
 }
 public ServiceClient(ServiceOption option, IFfmpeg ffmpeg)
     : this(option, ffmpeg, new HttpClientHandler {
     UseCookies = true
 })
 {
 }