0
當我嘗試在Android 2.2上播放視頻時,它顯示「抱歉的視頻無法播放」。 這裏是代碼我使用如何在所有平臺上播放視頻播放器
<video id="example_video_1" class="video-js" width="576" height="362" controls="controls" preload="auto" poster="http://www.tazsoldev.com/8cow/wp-content/themes/8cow/images/splash.png">
<source src="http://www.tazsoldev.com/8cow/wp-content/themes/8cow/frontpage1.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
<source src="http://www.tazsoldev.com/8cow/wp-content/themes/8cow/frontpage1.theora.ogv" type='video/ogv; codecs="theora, vorbis"' />
<!-- Flash Fallback. Use any flash video player here. Make sure to keep the vjs-flash-fallback class. -->
<object id="flash_fallback_1" class="vjs-flash-fallback" width="576" height="362" type="application/x-shockwave-flash"
data="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf">
<param name="movie" value="http://releases.flowplayer.org/swf/flowplayer-3.2.1.swf" />
<param name="allowfullscreen" value="true" />
<param name="flashvars" value='config={"playlist":["http://www.tazsoldev.com/8cow/wp-content/themes/8cow/images/splash.png", {"url": "http://www.tazsoldev.com/8cow/wp-content/themes/8cow/frontpage1.mp4","autoPlay":false,"autoBuffering":true}]}' />
<!-- Image Fallback. Typically the same as the poster image. -->
<img src="http://www.tazsoldev.com/8cow/wp-content/themes/8cow/images/splash.png" width="576" height="362" alt="Poster Image"
title="No video playback capabilities." />
</object>
</video>
任何想法?
你試過.webm嗎?我以前在Android上播放過視頻。如果您嘗試手動在瀏覽器中加載視頻,會發生什麼情況?舉例來說 - 只是嘗試整個地址的視頻... 它在普通的瀏覽器中工作嗎? – 2011-10-10 21:16:53