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

[whatwg] Scripted querying of <video> capabilities

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Fri, 14 Nov 2008 09:15:15 +1100
Message-ID: <2c0e02830811131415g4cd3c219vcd6482a18adac216@mail.gmail.com>
On Fri, Nov 14, 2008 at 6:38 AM, Philip J?genstedt <philipj at opera.com> wrote:
> Now, if the codec parameter is used then the user agent may answer yes
> and no in a way that actually makes some sense.
> I also think that this should be explicitly related to the type
> attribute of the source element. One should be able to use canPlayType
> to predict with 100% accuracy which source the user agent will use when
> it encounters.
> <video>
> <source type="application/ogg"/>
> <source type="application/ogg codecs=dirac,flac"/>
> </video>

On a little bit of a side not, may I point out that there is an
updated RFC for Ogg media types at http://www.ietf.org/rfc/rfc5334.txt
and it explicitly includes the codecs parameter with standard values
for the current ones supported by Ogg.

It also recommends using "video/ogg" for video files, so that would
change your example to:

<source type="video/ogg"/>
<source type="video/ogg; codecs=dirac,flac"/>

I know it's a minor issue, but I'd like us at HTML5 to get it right
and to recommend the correct mime types to web developers.

Received on Thursday, 13 November 2008 14:15:15 UTC

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