W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2013

Allowing RTCIceServer to contain multiple URLs

From: Justin Uberti <juberti@google.com>
Date: Tue, 23 Apr 2013 23:06:45 -0700
Message-ID: <CAOJ7v-3sFpqkg+afKW7XbEXg+mvvywqOoXzjzW6g3b6dmpvmRA@mail.gmail.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
Cc: Mallinath Bareddy <mallinath@google.com>
Right now RTCIceServer has two properties, url and credential, and we
recently agreed to add a third property, username, since STUN/TURN URIs no
longer contain a username.

While looking into the implementation of this change, we realized that one
will typically specify several URIs for the same TURN server, for the
different transports that can be used to access it (UDP, TCP, TLS).
However, the username/credential will be the same, regardless of transport.

So to do this using the existing RTCIceServer syntax, one must create
separate RTCIceServer objects for each URI, all with the same credentials.
It seems like it would be cleaner to allow a list of URIs to be supplied in
a RTCIceServer, which would all share the same credentials. To achieve
this, we could simply change the current .url property from a DOMString to
a list, or add a new .urls property that is a list of DOMStrings.

This is a mostly cosmetic change, but it seems like it's a better fit for
what a "RTCIceServer" really is.

Any objections?
Received on Wednesday, 24 April 2013 06:07:32 UTC

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