title: why doesn't "onicecandidate" work?
body: <p>I'm having trouble understanding webRTC with it's PeerConnection and 'onicecandidate' event. </p>
  
  <p>As far as I understand it you <strong>must</strong> initiate a peerconnection using a STUN (or TURN) server, because it will send you back your ICE candidate for communication with another peer. </p>
  
  <p>I've seen examples leaving the server parameter of the PeerConnection object out, which I don't understand as well, but let's just say it does need the server parameter.</p>
  
  <p>So, when I write down the following code:</p>
  
  <pre><code>    var pc, ice = { "iceServers": [{ "url": "stun:stun.l.google.com:19302" }] };
  if(typeof mozRTCPeerConnection === 'function') {
  
      pc = new mozRTCPeerConnection(ice);
  }
  else {
      console.log('google');
      pc = new webkitRTCPeerConnection(ice);
  }
  
  
  pc.onicecandidate  = function(event) { 
      console.log(event);
  }
  </code></pre>
  
  <p>I expect that the 'onicecandidate' event will fire, but it doesn't work. I tried other public STUN servers as well, but nothing happens. So I assume there is probably something wrong with my comprehension :)</p>