W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2009

[whatwg] HTML 5 video tag questions

From: Chris Double <chris.double@double.co.nz>
Date: Mon, 15 Jun 2009 21:48:10 +1200
Message-ID: <c2e346f90906150248m7e9fb430ud8cfaad84491e48b@mail.gmail.com>
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
Received on Monday, 15 June 2009 02:48:10 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:13 UTC