我使用子代码在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>
感谢。
答案 0 :(得分:0)
video/mpeg
,而不是video/mp4
。"
)。.ashx
- 我不知道它是什么扩展名,但它可能会干扰。还有一件事,你可能需要仔细检查IE9支持哪些特定的编解码器。
答案 1 :(得分:0)
它可能与this有关吗? - 只是一枪......