Re: PeerConnection should extend EventTarget

Hi

PeerConnection does implement EventTarget. The actual "implements 
statement" is located at the very end of chapter 4 (a bit off). I think 
we should put that in the same idl section as the actual PeerConnection 
interface.

The DataChannel, on the other hand, does not implement EventTarget 
(which it should do).

/Adam

On 2012-06-11 15:25, SUN Yang wrote:
> +1
>
> During implemenation of webrtc service, we can know it is very necessary
>   web page can capture event
> from peerconnection during different stage for service and UI control.
>
>
> On Mon, Jun 11, 2012 at 5:41 PM, Dominique Hazael-Massieux <dom@w3.org
> <mailto:dom@w3.org>> wrote:
>
>     Hi,
>
>     PeerConnection can fire a whole bunch of events; it would seem logical
>     that one could register (and remove) these events using
>     addEventListener/removeEventListener, and thus should extend
>     EventTarget.
>
>     Dom
>
>
>
>
>
>
> --
> Yang
> Huawei
>

Received on Tuesday, 12 June 2012 08:13:38 UTC