IE9中视频标签问题,无法播放MP4文件
我已经使用子代码在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="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>
谢谢。
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
video/mpeg
,而不是video/mp4
。"
)。.ashx
- 我不知道那是什么扩展名,但它可能会干扰。还有一件事,您可能需要仔细检查 IE9 支持哪些特定编解码器。
video/mpeg
, notvideo/mp4
."
) around codecs..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.
它是否与 这个? - 只要一枪...
Could it have something to do with this? - Just a shot...