OnIceMessage ???

66 views
Skip to first unread message

kangarooPete

unread,
Nov 29, 2012, 11:52:45 PM11/29/12
to discuss...@googlegroups.com
Looks like OnIceCandidate is called after I invoke setLocalDescription upon receiving an offer, setting remote description and creating an answer.

Should I be calling processIceMessage or addIceCandidate upon receiving an IceCandidate?


void OnIceCandidate(const webrtc::IceCandidateInterface* candidate) {
peerconnection_->AddIceCandidate(candidate);

}

Harald Alvestrand

unread,
Nov 30, 2012, 9:10:33 AM11/30/12
to discuss...@googlegroups.com
Send the candidate to the other guy. He's the one who needs to do
addIceCandidate.
> --
>
>
>

Anders

unread,
Nov 30, 2012, 11:53:42 AM11/30/12
to discuss...@googlegroups.com
@kangarooPete  You can see it done in a good way in the the simple-peer-to-peer-example, here:

I am not on an expert, but it seems to me that there comes like 8 ice candidate after start, and then it stops. 
(i think they could come back if network stuff changes)

kangarooPete

unread,
Nov 30, 2012, 2:47:29 PM11/30/12
to discuss...@googlegroups.com
I was under the impression that IceCandidate(s) are transported via 'relay' and not the signaling server.
I have a browser-browser application working and I don't pass IceCandidate via signaling server.  What is the
difference between that and using the native libjingle library??

Ivan Vučica

unread,
Nov 30, 2012, 2:56:28 PM11/30/12
to discuss...@googlegroups.com, kangarooPete
Any helper servers or relays (STUN and TURN servers) are used solely to assist call initiation (STUN), or in relaying call data (TURN).
 
You need to transfer candidates yourself. ICE subsystem helps with determining candidates, but not with transfer. After all, that’s the point of separating the signaling layer; you will not be transferring candidates over XMPP the same way you’ll do it using SIP. Other systems (many WebRTC demos come to mind!) may implement their own signaling that does not seem similar to any standard apart from using SDP format (and even that purely because that’s easiest to pull out of the browser).
 
Hence, you are almost certainly transferring candidates using some sort of a signaling server; in your case, I suspect that’s the HTTP server. This is what apprtc demo does; it transfers SDP stanzas over HTTP, where the HTTP server acts as the sole signaling intermediary.
 
Ivan Vucica - iv...@vucica.net
 

 

--
 
 
 

Vikas

unread,
Nov 30, 2012, 4:40:30 PM11/30/12
to discuss-webrtc
I would suggest you to refer to this example (https://webrtc-
demos.appspot.com/html/pc1.html). It sets up a loopback call using 2
peer connections. If you are using the RTCPeerConnection then you need
to use addIceCandidate. The example i have shared with you uses local
host candidates to setup a call. If you want to generate server reflex/
relay candidates you need to specify a STUN/TURN sever when creating
peer connection.

/Vikas
Reply all
Reply to author
Forward
0 new messages