When i try to play video on android 2.2 it 开发者_如何学运维says "Sorry video cannot be play". here is the code i am using
<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>
Any idea?
I think that Android Doesn't Support MP4 extension, and I'm not sure about it. try a other extension or an other frequency of the video.
精彩评论