在Blob存储组委会Azure的媒体资产 [英] Organising Azure Media assets in Blob storage

查看:221
本文介绍了在Blob存储组委会Azure的媒体资产的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的Azure媒体服务,以摄取/转码,并为Web应用程序提供内容。同样的Web应用程序使用的Blob存储来存储用户的资产。

I'm using Azure Media services to ingest/transcode and deliver content for a web application. The same web application uses Blob storage to store user assets.

既然这样,每当我摄取一个新项目到AMS我得到的Blob存储以创建一个新的容器资产名称。
是否有配置AMS使用的子容器的方法吗?我宁愿保持自己的目录组织的媒体资产。而不是仅仅坐在我的存储帐户的最高级别?

As it stands, whenever I ingest a new item into AMS I get a new container created in the blob storage with the asset name. Is there a way to configure AMS to use a sub-container? I'd prefer to keep the media assets organised in their own directory. Instead of just sitting at the top level of my storage account?

推荐答案

Azure存储没有phycial层级像文件夹。有一个在Azure存储API选项通过包括/到您的一滴名模拟树状层次结构。请参阅相关的岗位 href=\"http://stackoverflow.com/questions/2618207/windows-azure-creating-a-subdirectories-inside-the-blob\">

Azure storage has no phycial hierarchy like folder. There is an option in azure storage api to simulate tree hierarchy by including "/" into your blob names. See related post here

的Windows Azure媒体服务是不是在这个时候支持这种命名约定。一旦你将尝试使用,其中物理文件名名不匹配IAssetFile.Name你会得到异常.NET SDK来上传文件:

Windows Azure Media Services is not supporting such naming convention at this moment. Once you will try to upload file using .net sdk where physical file name name is not matching IAssetFile.Name you will get exception:

System.ArgumentException:上传的文件名应等于(不区分大小写)到IAssetFile.Name财产

System.ArgumentException: Uploaded file name should be equal (case insensitive) to a IAssetFile.Name property

 IAsset asset = _dataContext.Assets.Create(containerName, AssetCreationOptions.None);
 var file = asset.AssetFiles.Create("Folder/Subfolder" + Guid.NewGuid().ToString());
 file.Upload(_smallWmv);

这篇关于在Blob存储组委会Azure的媒体资产的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆