W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2008

[whatwg] Scripted querying of <video> capabilities

From: Chris Double <chris.double@double.co.nz>
Date: Tue, 12 Aug 2008 21:13:29 +1200
Message-ID: <c2e346f90808120213w73051578h5d236d6ef241e8@mail.gmail.com>
On Tue, Aug 12, 2008 at 7:47 PM, Kristof Zelechovski
<giecrilj at stegny.2a.pl> wrote:
> What is the advantage of using JavaScript to determine a viable embedding
> method over using alternative streams and fallback content that can include
> the OBJECT element where appropriate?

<video src="foo.ogg">
  fallback content

On a browser that doesn't support video this will use the fallback
content (OBJECT, etc) to instantiate something that can play the Ogg
file. On a browser that supports video and Ogg it will play the video.
On a browser that supports video but not Ogg, how do you then
instantiate a fallback that can play the Ogg file. Without JavaScript
and without providing an alternative source re-encoded in a different

Received on Tuesday, 12 August 2008 02:13:29 UTC

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