[whatwg] MediaController events

Dumez, Christophe christophe.dumez at intel.com
Fri Aug 24 00:49:10 PDT 2012


The MediaController interface in the latest video element
specification [1] has a number of events, for example:
           attribute EventHandler onemptied;
           attribute EventHandler onloadedmetadata;
           attribute EventHandler onloadeddata;

However, the MediaController interface does not inherit EventTarget
[2]. Shouldn't it be added?

The current WebKit implementation seems to subclass EventTarget so
that addEventListener() needs to be used to handle such events.
This also means that no onemptied attribute is available on WebKit
MediaController interface.

The WorkerGlobalScope specification [3] for example clearly inherits

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediacontroller
[2] http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-EventTarget
[3] http://www.whatwg.org/specs/web-apps/current-work/#workerglobalscope

Christophe Dumez
Linux Software Engineer, PhD
Intel Finland Oy - Open Source Technology Center

More information about the whatwg mailing list