W3C home > Mailing lists > Public > public-html-media@w3.org > June 2012

Re: [EME] object-oriented design representing sessions as objects

From: Eric Carlson <eric.carlson@apple.com>
Date: Tue, 19 Jun 2012 11:30:08 -0700
Cc: "Chen, Michael" <Michael_Chen@cable.comcast.com>, public-html-media <public-html-media@w3.org>
Message-id: <5B571CDA-C1EC-4E16-A9B1-C85E99E35E71@apple.com>
To: David Dorwin <ddorwin@google.com>

On Jun 18, 2012, at 8:34 PM, David Dorwin <ddorwin@google.com> wrote:

> Thanks Michael. I thought some more about this and updated the bug with the text below.
> As Michael Chen pointed out, if the events are no longer fired at HTMLMediaElement there is no way to relate the event back to the original element to which it pertains in the proposed API.
> Do we need to be able to relate the event and elements when the events are communicating information about the session?
> If so, the element could be a property of the event or the session object. Sharing session objects between elements could complicate this; maybe not associating the session/events with elements is better for this reason.
  The media element has a similar issue when an audio, video, or text track is added or removed. The 'addtrack' and 'removetrack' events are fired at one of the media element's Track list object, so the events use the the TrackEvent interface [1] which has a 'track' attribute that returns the TextTrack, AudioTrack, or VideoTrack that was added or removed.


Received on Tuesday, 19 June 2012 18:30:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:32:56 UTC