API to get the ICE connected pair(s)

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