html5视频文件处理并可在IE9中查看
我的问题:
1.我刚刚在sitecore后端上传了一个mp4文件,当我使用html5视频标签在前端显示它时。我如何更改 Firefox 的文件类型? Firefox 使用 .webm 格式。但我认为我上传的 mp4 文件无法转换为 .webm 文件。
2.由于sitecore使用.ashx扩展名作为媒体,我在其末尾添加了一个扩展名,如下所示,
<source type="video/mp4; codecs=avc1.42E01E, mp4a.40.2" src="~/media/Files/Videos/sample video mp4.ashx?ext=.mp4"></source>
它在IE7和IE8中工作正常,但在IE9中仍然无法工作。 我如何将其更改为 IE9 的真实 .mp4 文件?
任何帮助,谢谢
My questions:
1.I just uploaded a mp4 file in the sitecore backend, and when i use the html5 video tag to show it in the front end. how could i change the file type for Firefox? Firefox use the .webm format. but i think my mp4 file which uploaded could not convert to .webm file.
2.As sitecore use the .ashx extenstion name for the media, i add an extension name in the end of that ,which as below,
<source type="video/mp4; codecs=avc1.42E01E, mp4a.40.2" src="~/media/Files/Videos/sample video mp4.ashx?ext=.mp4"></source>
It works fine in IE7 and IE8, but it's still could not work in IE9.
how's i could change it as a real .mp4 file for IE9?
Any help, thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关于您的第二个问题:
如果您正在使用最新版本的 Sitecore,我建议您以集成模式运行 IIS AppPool,并将 web.config 中的“Media.RequestExtension”配置更改为空值(或您的首选包含配置文件)。
新的 Sitecore Web.config 值:
或作为包含文件中的“补丁”:
此设置会生成具有原始文件名的媒体链接,在您的情况下为“~/media/Files/Videos/sample video mp4.mp4”
Regarding your 2nd question:
If you're working with a recent version of Sitecore and I'd recommend running the IIS AppPool in integrated mode and change the configuration of "Media.RequestExtension" to an empty value in the web.config (or your prefered include config file).
New Sitecore Web.config value:
Or as a "patch" in an include file:
This setting results in media links with the original filename, which in your case would be "~/media/Files/Videos/sample video mp4.mp4"