如何从Azure媒体服务获取URL [英] How to get a url from Azure Media Services
本文介绍了如何从Azure媒体服务获取URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我将mp4上传到媒体服务,无论如何,有没有获得带有.mp4扩展名的网址,以便可以将链接放在我使用的应用程序中?我知道如果我有一个.mov或需要加密的任何类型的文件,都可以生成一个.mp4文件.但是如果已经是一个, 它不会提供扩展名为.mp4的网址.也许我不需要使用媒体服务,但在Azure中可以使用其他服务.
If I upload a mp4 to media services, is there anyway to get a url with a .mp4 extension so I can put the link in an app I use? I know if I have a .mov or any type file that needs encryption, an .mp4 file can be generated but if it is one already, it won't give a url with .mp4 extension. Maybe I don't need to use media services but something else in Azure.
Mike
推荐答案
如果您试图直接从网站上读取它,我建议添加以下代码:
If you are trying to directly read it from a website, I would suggest adding the following code:
<staticContent>
<mimeMap fileExtension=".mp4" mimeType="video/mp4" />
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
There is a similar topic available in
here This is also a hint to research more about web apps in Azure.
这篇关于如何从Azure媒体服务获取URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文