[whatwg] HTML 5 video tag questions

Chris Double chris.double at double.co.nz
Mon Jun 15 02:48:10 PDT 2009


On Mon, Jun 15, 2009 at 1:46 PM, <jjcogliati-whatwg at yahoo.com> wrote:
>
> 1.  What happens if the user agent supports the video tag but does not support the particular video codec that the video file has?  Should it display the fallback content in that case, and if so, can a video tag be put inside another video tag?

It does not display the fallback if the codec/format is not supported.
The fallback is only displayed in a browser if the video element is
not supported at all.

> 2.  What is the recommended way for website authors to determine what video and audio codecs and containers are supported by a user agent?

Ideally all user agents will have one codec that is supported across
all implementations. Failing that there's a JavaScript API for
querying codec support. Look for 'canPlayType'.

Chris
-- 
http://www.bluishcoder.co.nz


More information about the whatwg mailing list