W3C home > Mailing lists > Public > public-webrtc@w3.org > August 2012

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

From: <bugzilla@jessica.w3.org>
Date: Fri, 10 Aug 2012 06:23:17 +0000
To: public-webrtc@w3.org
Message-ID: <bug-18516-4991@http.www.w3.org/Bugs/Public/>

           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 {


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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:35:47 UTC