除IE8外,海报图片随处可见

时间:2015-05-01 18:20:37

标签: flash internet-explorer-8 html5-video mediaelement.js poster

媒体元素播放器在所有浏览器中成功运行(并且海报图像显示),除了海报图像未在IE8中显示(仅黑色)。这是我的代码:

<video id="video" poster="http://www.-domain-.com/img/testImage.jpg" preload="none" controls="controls" width="240" height="220" >
<source type="video/mp4" src="http://www.-domain-.com/video/testVideo.mp4"/>
 <object width="240" height="220" type="application/x-shockwave-flash" data="http://www.-domain-.com/mediaelement/flashmediaelement.swf">
  <param name="movie" value="http://www.-domain-.com/mediaelement/flashmediaelement.swf" />
  <param name="flashvars" value="controls=true&file=http://www.-domain-.com/video/testVideo.mp4" />
   <!-- Image as a last resort -->
   <img src="http://www.-domain-.com/img/testImage.jpg" width="240" height="220" title="No video playback capabilities" />
   </object>
   </video>

如何让海报图片出现在IE8中?任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:2)

IE8不支持HTML5视频。 Flash后备需要支持它,或者您需要制作自己的解决方案来显示图像(当检测到IE8时,或者更确切地说,缺少html5视频支持),然后当您想要播放视频时将其替换为Flash后备

相关问题