html - mp4 视频不会使用 video.js 在 IE9 中播放

标签 html internet-explorer video mp4 video.js

我正在尝试使用 video.js 播放 mp4 文件。它不会在 IE9 中播放。它在 Firefox 和 Chrome 中运行良好。如果我在 windows media player 中打开视频,它也可以正常播放(也许 IE9 和 windows media player 使用相同的编解码器?)。我现在已经确认 IE9 甚至没有请求该文件。

请参阅此处示例:http://devonline.northcarolina.edu/lcl/ded_prod/exams/video/jstest.html

<html>

<link href="video-js/video-js.css" rel="stylesheet">
<script src="video-js/video.js"></script>
<script>
  videojs.options.flash.swf = "video-js/video-js.swf"
</script>

<body>
Video should be here:

<video id="example_video_1" class="video-js vjs-default-skin"
  controls preload="auto" width="640" height="264" >
 <source src="http://devonline.northcarolina.edu/lcl/ded_prod/exams/video/student/invite.mp4" type='video/mp4' />
</video>

</body>

</html>

最佳答案

有两件事要尝试。

  1. 尝试将视频的完整路径放在 src 属性中,例如 src="http://www.mywebsite.com/path/to/the/video.mp4" 有时 IE 需要这个。

  2. 尝试使用 Miro 之类的工具重新编码视频失败 Video Converter 因为不是所有的 MP4 文件都是一样的,哪一个 浏览器可以播放另一个不一定可以。

关于html - mp4 视频不会使用 video.js 在 IE9 中播放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18700010/

相关文章:

javascript - IE 在 location.replace 之后有空的 document.referrer

javascript - 为什么这个视频无法播放? HTML5 Canvas

javascript - 下拉菜单和ajax窗口之间的jquery冲突

c# - 在 web.config 值中使用 HTML 下标

html - 使用 Selenium 在 Ruby 中选中复选框时访问出现的类属性

flutter - 在 Flutter 中移动到新屏幕之前下载并缓存多个视频

android - rtsp 视频性能作为浏览器触发的 Intent 与我的应用程序触发的 Intent

html - 如何对某些 css 形状进行编码?

css - IE8定位背景不显示

internet-explorer - Windows Azure 上使用回发的 Chrome 与 IE 等