[whatwg] Scripted querying of <video> capabilities

Chris Double chris.double at double.co.nz
Tue Aug 12 02:13:29 PDT 2008


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
</video>

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

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



More information about the whatwg mailing list