W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2012

[whatwg] exposing metadata on replaced elements (was: <video> feedback)

From: Silvia Pfeiffer <silviapfeiffer1@gmail.com>
Date: Tue, 18 Sep 2012 12:19:14 +1000
Message-ID: <CAHp8n2=ip_9Xfb-iuU6QUfDOpqJwg+gZVSCOYY+O7qagyn1-oQ@mail.gmail.com>
To: whatwg@whatwg.org
Hi Ralph, all,

> On Mon, 11 Jun 2012, Ralph Giles wrote:
>> Recently, we've been considering adding a 'tags' or 'metadata' attribute
>> to HTML media elements in Firefox, to allow webcontent access to
>> metadata from the playing media resource. In particular we're interested
>> in tag data like creator, title, date, and so on.
>> My recollection is that this has been discussed a number of times in the
>> past, but there was never suffient motivation to support the interface.
>> Our particular motivation here is webapps that present a media file
>> library. While it's certainly possible to parse the tag data out
>> directly with javascript, it's more convenient if the HTML media element
>> does so, and the underlying platform decoder libraries usually provide
>> this data already.
> My recommendation would be to develop a specification for this (or use the
> one(s) already available for this purpose), and in that specification
> define how it is added to HTMLMediaElement, much as you suggest:
>> partial interface HTMLMediaElement {
>>   [...]
>> };
> (I don't have the bandwidth to define how to extract this kind of thing
> from each video format. Even trying to define what little the spec already
> says has required hours of reading obscure specifications and that's
> without even testing to see if those specs match reality.)

I think we have a more generic problem than just for media elements.

None of our elements that pull in external resources (including img,
object/embed, video, audio, track) expose metadata to the Web page and
the Web developer is required to implement a XHR to get this kind of

While we have somewhat of a proposal for exposing metadata to media
elements through the W3C media annotations WG [1] with the
getMediaProperty() function, we have no such thing for any of the
other resource types. Also, it is not clear that this function is

I suggest we need to develop a generic solution for this problem.


[1] http://www.w3.org/TR/2011/WD-mediaont-api-1.0-20111122/#async-api
Received on Tuesday, 18 September 2012 02:20:17 UTC

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