IE9解码mp4文件的HTML5视频错误 [英] IE9 decode error on HTML5 video of mp4 file

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

问题描述

我写了一个html5页面,来源是fllows:

I write a html5 page, the source is as fllows:

<!doctype html5>
....
<video id="vdemo1" controls  width="440" height="248">
  <source src='http://mysite.com/demo.webm' type='video/webm'>
  <source src='http://mysite.com/demo.mp4' type='video/mp4'>
  // fallback codes
</video>

视频标签的输出是一个空黑框。按照此网址上的说明操作: HTML5视频在IE9中不起作用 - 一些调试技巧,它显示了MEDIA_ERR_DECODE错误代码。但是,我可以右键单击空视口并选择播放项目,但视口中没有任何内容。右键单击并选择保存将mp4文件保存到本地高清后,可以在操作系统下播放。我甚至将视频src更改为本地文件,但它没有帮助!

the output of video tag is an empty black box. By following the instruction on this url:HTML5 Video not working in IE9 - Some tips to debug, it shows a MEDIA_ERR_DECODE error code. However, I can right click on the empty viewport and choose 'play' item but nothing appears in viewport. After right clck and choose 'save' to save mp4 file to local hd, it can be played well under OS. I even change video src to local file but it doesn't help!

IE9是否会失去mp4编解码器能力(我确定mp4是用H.264编码的)?我该如何重新获得这个能力?

Does IE9 lose the mp4 codec ability ( I'm sure the mp4 is encoded in H.264)? How can I regain the ability?

=======
edit @ 2012/10/9

======= edit @ 2012/10/9

发生了一件奇怪的事。我第一次运行之前和之后都没有运行Windows媒体播放器,如果视频标签源是本地文件,则可以播放。但如果远程url,那么它不会。谁能明白为什么?

There's a strange thing happened. I never run Windows media player before and after I run it 1st time, if source of video tag is local file, it can be playbacked. But if remote url, then it won't. Can anyone see why?

推荐答案


  1. 重新排序来源 - 将mp4放在首位!

  2. 检查您的服务器是否为您的mp4发送了正确的mime类型(video / mp4)。

两者都可以打破播放......

Both can break playback...

这篇关于IE9解码mp4文件的HTML5视频错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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