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

Re: [ACTION-43] (sdp related objects and global namespace) - way forward

From: Anant Narayanan <anant@mozilla.com>
Date: Fri, 15 Jun 2012 21:57:30 -0700
Message-ID: <4FDC123A.5090807@mozilla.com>
To: Adam Bergkvist <adam.bergkvist@ericsson.com>
CC: Dominique Hazael-Massieux <dom@w3.org>, "public-webrtc@w3.org" <public-webrtc@w3.org>
On 06/14/2012 03:06 AM, Adam Bergkvist wrote:
> Ways forward:
...
> 2. Add, e.g., SessionDescription to the PeerConnection namespace.
> * PeerConnection.SessionDescription
> - Does any other web API do this?
>
> Downside with the two above is a very long name and, unlike e.g.
> PeerConnectionErrorCallback, the name will be used by developers to
> construct objects.

My vote is for (2) as stated above. I'm not too worried about it being 
too long. If developers find themselves constructing this object often, 
they can set it at the top of the file:

const SD = PeerConnection.SessionDescription;
const IC = PeerConnection.ICECandidate;
...
var foo = new SD();
var bar = new IC();

Regards,
-Anant
Received on Saturday, 16 June 2012 04:58:03 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:28 UTC