MP4 HTML5视频不工作的IE10 [英] MP4 html5 video not working on IE10

查看:176
本文介绍了MP4 HTML5视频不工作的IE10的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个视频,我想它显示在网页上。我曾经在多种格式保存它,一个IE浏览器,我使用的MP4文件带H.264 codeD。

我已经试过这两个视频和​​我的电脑上的HTML code,和它的作品,但我把它上传到它不服务器(它说,媒体类型是不兼容)。我试图访问我的电脑上从HTML页面的视频,并给出了同样的错误,所以我认为该错误可能是服务器发送一个不正确的MIME类型上(我已在视频标签中指定视频/ MP4 )。

难道你们知道我该如何解决?

 <视频控制自动播放海报=图像/ logobig.png的风格=WIDTH:610px;>
<信源SRC =视频/ 1.mp4TYPE =视频/ MP4/>
<信源SRC =视频/ 1.oggTYPE =视频/ OGG/>
<信源SRC =视频/ 1.webmTYPE =视频/ W​​EBM/>
您的浏览器不支持HTML5
 < /视频>


解决方案

最后我解决了它,加入

 将AddType视频/ OGG的.ogv
将AddType视频/ MP4 .MP4
将AddType视频/ W​​EBM .webm

为.htaccess

I have a video and I want to display it on a webpage. I have saved it in several formats, an for IE i am using an MP4 file encoded with H.264.

I have tried both the video and the HTML code on my PC, and it works, but what I upload it to the server it doesnt (it says the media type is not compatible). I have tried accessing the video from the HTML page on my PC, and it gives the same error, so I think the error may be on the server sending an incorrect MIME TYPE (I have already specified "video/mp4" on the video tag).

Do you guys know how can I fix it?

<video controls autoplay  poster="images/logobig.png" style="width:610px;">
<source src="videos/1.mp4"  type="video/mp4" />
<source src="videos/1.ogg" type="video/ogg" />
<source src="videos/1.webm" type="video/webm"  />
Your browser does not support HTML5
 </video>

解决方案

Finally I solved it, adding

AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

to .htaccess

这篇关于MP4 HTML5视频不工作的IE10的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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