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

API to get the ICE connected pair(s)

From: Iñaki Baz Castillo <ibc@aliax.net>
Date: Fri, 5 Sep 2014 10:49:30 +0200
Message-ID: <CALiegfkXc2oSt10YEAwnGULtcDMxnNbmp=mezH5yhvr=91eMqg@mail.gmail.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
It is common the case in which I need to know whether my
PeerConnection has connected to the peer using TURN or not (along with
the used transport).

The oniceconnectionstatechange event does not provide this information
even when the ICE status becomes "connected" or "completed", not the
PeerConnection includes an attribute or getter to get this
information.

I consider this extremely useful. I propose that the PeerConnection
includes a "icePairs" attribute whose value is an array (since a PC
can handle multiple transports and a single transport can handle N
valid ICE pairs) with Objects as follows:

  {
      localCandidate:      RTCIceCandidate,
      remoteCandidate:  RTCIceCandidate,
      state:                      RTCIceConnectionState
  }


-- 
Iñaki Baz Castillo
<ibc@aliax.net>
Received on Friday, 5 September 2014 08:50:18 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:00 UTC