[whatwg] HTML 5 video tag questions

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'.


Received on Monday, 15 June 2009 02:48:10 UTC