Container name for media asset on Azure Media Services

回眸只為那壹抹淺笑 提交于 2021-01-28 02:56:26

问题


How do I set the name of the container when creating an asset for Windows Azure Media Services?

Calling my CloudMediaContext like this to create a new asset creates a new container in blob storage with the name "asset-[newGuid]" e.g. "asset-f230411a-22a0-4813-9187-4b815dbfdf12".

var assetName = "foobar";    
var asset = _mediaContext.Assets.Create(assetName, assetCreationOptions);

Background info on the call above by Nick Drouin (who works at MS on AMS)

"Under the hood, the call above will: create an IAsset and add it to the assets collection; create an IFileInfo to put in the asset; create an AccessPolicy with write permission, request a SAS locator for the asset container in Azure Storage using the AccessPolicy, upload the file into your storage account, and finally revoke the SAS url."

Question How do I control the name of the container?


回答1:


Currently Windows Azure Media Services is not allowing user to specify existing container name where asset will be created or specify custom name of new container . Please utilize http://azuremediaservices.uservoice.com/forums/88965-media-services-feature-suggestions to propose or vote for new feature suggestions.



来源:https://stackoverflow.com/questions/17753073/container-name-for-media-asset-on-azure-media-services

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!