       , ->
         console.log('Added the ICE Candidate.')
       , (err) ->
-        console.log('[ERROR] - ICE Candidate. ' + err)
+        console.log('[ERROR] - ICE Candidate.' + err)
       )
     else
       #alert('[ERROR] - no peer for peer_id: '+config.peer_id)

    merged.optional = merged.optional.concat(cons2.optional)
    merged

  # Peers exchange session descriptions which contains information
  # about their audio / video settings and that sort of stuff. First
  # the 'offerer' sends a description to the 'answerer' (with type



  doGetUserMedia: (callback) ->
    if( @localStream != null)
      if( callback )
        callback()
        return
    constraints = {"audio": true, "video": {"mandatory": {}, "optional": []}};
    try
      console.log("Requested access to local media with mediaConstraints:\n \"" + JSON.stringify(constraints) + "\"");
      getUserMedia(constraints, (stream) =>
        @localStream = stream 
        local_media = if @USE_VIDEO
                        $("<video>")
                      else
