Пример #1
0
        public override void CreateIngestVideoEntity()
        {
            var callback = Settings.IngestionCallbackUrl(StorageExecutor.Config.BaseUrl, GetCallbackUrl());

            IngestVideoEntity = new IngestVideo
            {
                VideoId      = VideoEntity.Id,
                IngestMaster = new IngestMaster
                {
                    Url = UploadFileInfo.Url
                },
                CaptureImages = Config.CaptureImages,
                Profile       = Config.Profile,
                Callbacks     = new Collection <string> {
                    callback
                }
            };

            LogHelper.Info(string.Format("ingesting for: VideoId={0}, url={1}, callback={2}", IngestVideoEntity.VideoId, IngestVideoEntity.IngestMaster.Url, IngestVideoEntity.Callbacks.FirstOrDefault()), this);
        }
Пример #2
0
 public IngestVideo Ingest(IngestVideo entity)
 {
     return(this.Create("ingest", entity, request => AddParameters(request, entity.VideoId)));
 }