[Bug 16613] Consider a more object-oriented design in which sessions are represented as objects

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16613

--- Comment #7 from David Dorwin <ddorwin@google.com> 2012-06-19 03:27:43 UTC ---
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 proposal also moves the needkey event to the object, but a session may not
always exist when a needkey event needs to be fired (encrypted block or
potentially encrypted stream encountered). Maybe this event needs to continue
to target HTMLMediaElement. This probably makes sense if there is only one
initData per session. It's TBD if there are cases where needkey should be fired
at the session object.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Tuesday, 19 June 2012 03:27:46 UTC