W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2015

Re: RTCSessionDescription and RTCIceCandidate

From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 14 Sep 2015 14:08:17 -0700
Message-ID: <CABkgnnWUKex=z2aewxygNSUfRdH=mJU=Uk5SPc-ymz0gYKUtqg@mail.gmail.com>
To: Harald Alvestrand <harald@alvestrand.no>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
On 14 September 2015 at 14:03, Harald Alvestrand <harald@alvestrand.no> wrote:
> I don't see any huge advantage of using "dictionary" over "interface",
> but that may be just me.

Here's why:

Previously:

signaling.oncandidate = c => {
  RTCIceCandidate = RTCIceCandidate || mozRTCIceCandidate;
  pc.addIceCandidate(new RTCIceCandidate(c));
};

With the change:

signaling.oncandidate = c => {
  pc.addIceCandidate(c);
};
Received on Monday, 14 September 2015 21:08:44 UTC

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