Пример #1
0
        public SFTPMediaManagerTests()
        {
            var host     = "socialmovie.minivps.info";
            var port     = 2222;
            var username = "******";
            var password = "******";

            this.sftpClient = new SFTPMediaDeployer(host, username, password, port);
            this.AVIMedia   = FileHelper.GetInputFile("media.avi");
            this.DashMedia  = FileHelper.GetInputFile("dashvideo.zip");
        }
Пример #2
0
        public MediaManager(string ffmpegExecutablePath, string mp4boxExecutablePath, string host, string username, string password, int port)
        {
            this.converter = new MediaConverter(ffmpegExecutablePath, mp4boxExecutablePath);
            this.deployer  = new SFTPMediaDeployer(host, username, password, port);

            // Converter Events
            this.ConvertionDone += this.converter.ConvertionDone;
            this.OutputReceived += this.converter.OutputReceived;
            this.ErrorReceived  += this.converter.ErrorReceived;

            // Deployer Callback
            this.deployer.ProgressStatus = this.ProgressStatus;
        }