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

[whatwg] Serving up Theora <video> in the real world

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 10 Jul 2009 14:35:17 +1200
Message-ID: <11e306600907091935v2bdb86d5g86f0a4426844b5be@mail.gmail.com>
2009/7/10 Ian Fette (????????) <ifette at google.com>

> To me, this seems like a great test if "canPlayType" actually works in
> practice. In the perfect world, it would be great to do
> getElementById('video'), createElement, and
> then canPlayType('video/whatever','theora').
> If this simple use case doesn't work, I would ask if it's even worth
> keeping canPlayType in the spec.

var v = document.getElementById("video");
if (v.canPlayType && v.canPlayType("video/ogg; codecs=vorbis,theora")) {
} else {

should work great. Certainly does in Firefox.

"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20090710/91ff97f7/attachment.htm>
Received on Thursday, 9 July 2009 19:35:17 UTC

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