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

RE: get ice candidate in use in connected/completed state

From: Makaraju, Maridi Raju (Raju) <Raju.Makaraju@alcatel-lucent.com>
Date: Thu, 19 Jun 2014 14:06:04 +0000
To: Harald Alvestrand <harald@alvestrand.no>, "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <E1FE4C082A89A246A11D7F32A95A17828E419883@US70UWXCHMBA02.zam.alcatel-lucent.com>
On 06/19/2014 01:41 AM, Iskren Chernev wrote:

Once a connection has been established (PeerConnection

iceConnectionState is completed or connected), is there any way to get

the current ice candidate that is being used for the connection?



I want to know if its a p2p connection or one going through a turn server.




Once implemented, you should be able to get the selectedCandidatePairId of the RTCIceComponentStats - see https://www.w3.org/2011/04/webrtc/wiki/Stats

[Raju] As was discussed in rtcweb threads, IMO there should be a much quicker and deterministic way of knowing the selected candidate than via stats. Ideally, the best time to know this is when ICE connection state reached “completed” state, probably via setting evt.candidate info in oniceconnectionstatechange() callback.

BR
Raju
Received on Thursday, 19 June 2014 14:06:41 UTC

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