Just found a weird feature in Google's chrome browser, version 5.0.375.70. It seems that if you put the ogg src before the mp4, it won't play...
<video
class="video"
poster="http://wnas.nl/files/movie/example.jpg"
width="780"
height="470"
controls preload>
<source
src="http://wnas.nl/files/movie/example.mp4"
type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"'>
</source>
<source
src="http://wnas.nl/files/movie/example.ogv"
type='video/ogg; codecs="theora, vorbis"'>
</source>
</video>So you need to pay attention to one more thing when doing video and want it to work cross-browser...
And yes, I am aware that it won't play in IE and I don't care :). What I do care about is that the second video won't play in chrome for some reason, if anyone has a clue...
But what bothers me is that the iPhone won't play the thing if it's got a poster frame... So you need to omit that if you care about the iphone. I thought that they had that fixed with the ios4 upgrade, but apperently not...
0 Responses to html5 video and chrome
Leave a Reply