[whatwg] PeerConnection constructor: Init string format

Glenn Maynard glenn at zewt.org
Fri Apr 8 09:51:23 PDT 2011


On Fri, Apr 8, 2011 at 4:41 AM, Harald Alvestrand <harald at alvestrand.no>wrote:

> My alternate proposal:
> --------------------------------------------------------------
> The initialization string looks like this:
>
> {
>  “stun_service”: { “host”: “stun.example.com”,
>                   “service”: “stun”,
>                   “protocol”: “udp”
>                 },
>  “turn_service”: { “host”: “turn.example.com” }
> }
>

FWIW, I thought the block-of-text configuration string was peculiar and
unlike anything else in the platform.  I agree that using a configuration
object (of some kind) makes more sense.

-- 
Glenn Maynard



More information about the whatwg mailing list