コード例 #1
0
ファイル: CreatorStep.cs プロジェクト: uranium62/video-portal
        private CreatorStepData CreateStepData(IDataReceivedHandler dataReceivedHandler, IEncodeStringBuilder encodeStringBuilder)
        {
            var nextStepData = new CreatorStepData
            {
                EncoderState        = EncoderState.Completed,
                DataReceivedHandler = dataReceivedHandler,
                EncodeStringBuilder = encodeStringBuilder
            };

            return(nextStepData);
        }
コード例 #2
0
ファイル: CreatorStep.cs プロジェクト: uranium62/video-portal
        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);
        }