Ejemplo n.º 1
0
        private CreatorStepData CreateStepData(IDataReceivedHandler dataReceivedHandler, IEncodeStringBuilder encodeStringBuilder)
        {
            var nextStepData = new CreatorStepData
            {
                EncoderState        = EncoderState.Completed,
                DataReceivedHandler = dataReceivedHandler,
                EncodeStringBuilder = encodeStringBuilder
            };

            return(nextStepData);
        }
Ejemplo n.º 2
0
        public override void Execute(CancellationTokenSourceWrapper tokenSource)
        {
            IEncodeCreator creator = _creatorFactory.Create(StepData.EncodeData);

            IFfmpegParser        ffmpegParser        = creator.CreateFfmpegParser();
            IDataReceivedHandler dataReceivedHandler = creator.CreateDataReceivedHandler(ffmpegParser);
            IEncodeStringFactory encodeStringFactory = creator.CreateEncodeStringFactory();
            IEncodeStringBuilder encodeStringBuilder = creator.CreateEncodeStringBuilder(_tempFileManager, encodeStringFactory);

            CreatorStepData nextStepData = CreateStepData(dataReceivedHandler, encodeStringBuilder);

            Mediator.Send(nextStepData, this);
        }