Hi,
I think you can pass only relay candidates to addIceCandidate() when
the onicecandidate callback is fired. Something like below :-
function iceCallback1(event){
if (event.candidate.candidate.search('relay')>0) {
pc2.addIceCandidate(new RTCIceCandidate(event.candidate));
trace("Local ICE candidate: \n" + event.candidate.candidate);
}
}
/Vikas
On May 1, 10:31 am, Rajmohan Banavi <
rajmohanban...@gmail.com> wrote:
> Thanks philipp. Is it possible to drop the other candidates (host and
> server reflexive) after candidate gathering is done in the JS code
> programmatically?
>
> On Wed, May 1, 2013 at 1:11 PM, Philipp Hancke <
>
>
>
>
>
>
>
>
philipp.han...@googlemail.com> wrote:
> > Not yet, see issue #1179
>
> > On Sat, Apr 27, 2013 at 9:36 AM, Rajmohan Banavi <
rajmohanban...@gmail.com
> > > wrote:
>
> >> Is it possible to configure the WebRTC stack to make use of TURN
> >> candidates only when creating peer connections?
>
> >> Thanks.
> >> Rajmohan
>
> >> --
>
> >> ---
> >> You received this message because you are subscribed to the Google Groups
> >> "discuss-webrtc" group.
> >> To unsubscribe from this group and stop receiving emails from it, send an
> >> email to
discuss-webrt...@googlegroups.com.
> >> For more options, visithttps://
groups.google.com/groups/opt_out.