W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2013

Re: [whatwg] metadata attribute for media

From: Ralph Giles <giles@mozilla.com>
Date: Wed, 16 Jan 2013 12:21:30 -0800
Message-ID: <50F70BCA.6020306@mozilla.com>
To: whatwg@lists.whatwg.org
On 12-12-11 5:23 PM, Ralph Giles wrote:

> That said, I'm not convinced this is an issue given the primary
> use-case, which is pretty much that web content wants to do more
> sophisticated things with the metadata than the user-agent's
> standardized parsing allows. If one cares to that extent, and is already
> handling format differences, dealing with vendor variation on top isn't
> that much more effort.

Robert O'Callahan argued (off-list) that there is a significant
difference. Exposing what the media framework supplies for metadata,
multiplies the established format fragmentation by per-platform
differences. That's  not something we want to do if we can avoid it, and
we can avoid it by doing our own tag normalization as part of the
exposed API.

We feel that's more important than the extended and custom tag use case,
which is still addressible by direct parsing in javascript, etc.

I don't intend to continue with implementation of the raw metadata api,
and instead will focus on mapping everthing to a standard set of
attributes. To that proposal I've added a 'tracknumber' attribute since
this is imporant for sorting resources in media player applications.

interface Metadata {
  readonly attribute DOMString title;
  readonly attribute DOMString artist;
  readonly attribute DOMString album;
  readonly attribute long tracknumber;
  readonly attribute Blob? artwork;

partial interface MediaElement {
  Metadata metadata;

Received on Wednesday, 16 January 2013 20:21:55 UTC

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