1
我已經使用子碼在IE9中播放MP4視頻,但失敗了。我的視頻標籤在ie9中有什麼問題?IE9中的視頻標籤問題,無法播放MP4文件
<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>
謝謝。
ashx擴展是一個ASP.NET Web處理程序文件,在這個實例中由Sitecore用來從數據庫提供媒體下載。 –
我也有這個問題 - 使用video/mpeg導致IE9失敗。切換到視頻/ MP4基於這解決了它。 –