Re:Decoding the HTML 5 video codec debate
by GHFigs on Monday July 06, 2009 @02:48AM
(#689259)
Ah, but you can like so:
[ Parent
| on HN ]
Re:Decoding the HTML 5 video codec debate
by andrewl-hn on Monday July 06, 2009 @03:38AM
(#689295)
I'm not really sure how it's going to work in Chrome, though. The article says they are going to support both codecs. As a result it's up to browser which video source to choose. It's interesting whether it will pick the first source or the 'preferred' one (presumably, mp4). Is it possible to set the source preference in HTML? Like:
<video>
<source src="example-video.mp4" type="video/mp4" />
<source src="example-video.ogv" type="video/ogg" default/>
</video>
or something similar?
Re:Decoding the HTML 5 video codec debate
by mikedouglas on Monday July 06, 2009 @04:05AM
(#689316)
The first supported <source /> is used (from the spec).