如何在将视频上传到azure媒体服务后获取发布网址?

我可以通过Web HTTP rest API将视频上传到
windows azure媒体服务.但上传后我无法获取URL以在我的浏览器中运行此上传的视频.但是在此特定视频的azure端口中手动发布后,视频正在运行.

 所以我如何在上传到媒体服务后动态地通过rest API(带有媒体服务SDk)获取上传的视频发布URL.

=======
我正在获得多个网址.从这个我必须选择一个完美的.当我发布时,我会在这个特定视频的天蓝色门户网站上获得一个网址.但是当我上传和编码完成.我得到了多个网址.

我的网址:

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_manifest.xml?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_H264_650kbps_AAC_und_ch2_96kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_H264_400kbps_AAC_und_ch2_96kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_H264_3400kbps_AAC_und_ch2_96kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_H264_2250kbps_AAC_und_ch2_96kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_H264_1500kbps_AAC_und_ch2_96kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_H264_1000kbps_AAC_und_ch2_96kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_AAC_und_ch2_96kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2_AAC_und_ch2_56kbps.mp4?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D

https://portalvhdsd963vxvxn5lz8.blob.core.windows.net/asset-884f66e2-eb18-4952-88d8-80538ee6fd7c/smallwmv2.ism?sv=2012-02-12&st=2013-09-10T16%3A54%3A51Z&se=2033-09-05T16%3A54%3A51Z&sr=c&si=83e1dcba-b296-4e08-b309-3cfb8ff360e0&sig=HzFbNn%2Fc5KuD%2B8UlArcoDR%2F5ZsF0Ca2Nlqgoq1SOw8g%3D.

最佳答案 要获取已发布视频的URL,您需要在媒体服务术语中创建一个名为Locator的内容.您需要为包含已发布视频的资产创建一个定位器.要创建定位器,首先需要创建具有读取权限的访问策略(
http://msdn.microsoft.com/en-us/library/windowsazure/hh974297.aspx#create_an_accesspolicy).创建该访问策略后,您将创建一个定位器(
http://msdn.microsoft.com/en-us/library/windowsazure/hh974308.aspx#create_a_locator).

我写了一些关于消费媒体服务REST API的博客文章,您可能会发现它很有用:http://gauravmantri.com/category/azure-media-service/.我很久以前写过它们,所以有些信息可能已经过时了.请参阅REST API文档以获取最新信息.

点赞