[Bug 18516] New: MediaStream should extend EventTarget, not mix it in

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

           Summary: MediaStream should extend EventTarget, not mix it in
           Product: WebRTC Working Group
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebRTC API
        AssignedTo: public-webrtc@w3.org
        ReportedBy: dominicc@chromium.org
                CC: public-webrtc@w3.org


The editor’s draft [1] contains this definition:

MediaStream implements EventTarget;

However recent specs (including, for example: HTML, DOM Core, WebSockets, Web
Audio, Battery Status, File Writer, Indexed DB, HTML Media, SVG, XHR, etc. etc.
etc.) don’t declare EventTarget as a mixin interface but extend it directly.

It will simplify implementations and give programmers a more consistent API if
MediaStream also extends EventTarget. So I suggest removing that implements
clause and changing the definition of MediaStream to read:

interface MediaStream : EventTarget {

[1]
<http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-MediaStream>

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

Received on Friday, 10 August 2012 06:23:20 UTC