IE9中视频标签问题,无法播放MP4文件

发布于 2024-12-09 01:52:35 字数 1136 浏览 0 评论 0原文

我已经使用子代码在IE9中播放MP4视频,但失败了。我的 ie9 中的视频标签有什么问题?

<video class="video-js" width="576" height="324" controls="controls" preload="" poster="~/media/Images/Article/samplevideolarge.ashx?ext=.gif">
<source type="video/mp4; codecs=&quot;avc1.42E01E, mp4a.40.2&quot;" src="~/media/Files/Videos/sample video mp4.ashx"></source>
<object class="vjs-flash-fallback" width="576" height="324" type="application/x-shockwave-flash" data="/global/scripts/flowplayer-3.2.7.swf">
 <param name="movie" value="/global/scripts/flowplayer-3.2.7.swf" />
 <param name="allowfullscreen" value="true" />
 <param name="flashvars" value='config={"playlist":["~/media/Images/Article/samplevideolarge.ashx?ext=.gif", {"url": "~/media/Files/Videos/sample video mp4.ashx","autoPlay":false,"autoBuffering":true}]}' />
<!-- Image Fallback. Typically the same as the poster image. -->
<img src="~/media/Images/Article/samplevideolarge.ashx?ext=.gif" width="576" height="324" alt="Poster Image" title="No video playback capabilities." />
</object>
</video>

谢谢。

I have use the sub code to play MP4 video in IE9, but failed. What's wrong with my video tag in the ie9?

<video class="video-js" width="576" height="324" controls="controls" preload="" poster="~/media/Images/Article/samplevideolarge.ashx?ext=.gif">
<source type="video/mp4; codecs="avc1.42E01E, mp4a.40.2"" src="~/media/Files/Videos/sample video mp4.ashx"></source>
<object class="vjs-flash-fallback" width="576" height="324" type="application/x-shockwave-flash" data="/global/scripts/flowplayer-3.2.7.swf">
 <param name="movie" value="/global/scripts/flowplayer-3.2.7.swf" />
 <param name="allowfullscreen" value="true" />
 <param name="flashvars" value='config={"playlist":["~/media/Images/Article/samplevideolarge.ashx?ext=.gif", {"url": "~/media/Files/Videos/sample video mp4.ashx","autoPlay":false,"autoBuffering":true}]}' />
<!-- Image Fallback. Typically the same as the poster image. -->
<img src="~/media/Images/Article/samplevideolarge.ashx?ext=.gif" width="576" height="324" alt="Poster Image" title="No video playback capabilities." />
</object>
</video>

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

故事还在继续 2024-12-16 01:52:35
  1. 我相信 mp4 视频的 MIME 类型是 video/mpeg,而不是 video/mp4
  2. 我可能会弄错,但我认为您不应该在编解码器周围加上引号(或 ")。
  3. 这个可能不会影响它,但扩展名是 .ashx - 我不知道那是什么扩展名,但它可能会干扰。

还有一件事,您可能需要仔细检查 IE9 支持哪些特定编解码器。

  1. I believe the MIME type for mp4 video is video/mpeg, not video/mp4.
  2. I could be mistaken, but I don't think you're supposed to put quotes (or ") around codecs.
  3. This one may not affect it, but the extension is .ashx - I don't know what extension that is, but it might be interfering.

And one more thing, you may want to double-check which specific codecs are supported by IE9.

苍白女子 2024-12-16 01:52:35

它是否与 这个? - 只要一枪...

Could it have something to do with this? - Just a shot...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文