function addPeerConnection(data) {
  var id = getPeerConnectionId(data);

  if (!peerConnectionDataStore[id]) {
    peerConnectionDataStore[id] = new PeerConnectionRecord();
  }
  peerConnectionDataStore[id].initialize(
      data.url, data.rtcConfiguration, data.constraints);

  var peerConnectionElement = $(id);
  if (!peerConnectionElement) {
    peerConnectionElement = tabView.addTab(id, data.url + ' [' + id + ']');
  }

  var p = document.createElement('p');
  p.textContent = data.url + ', ' + data.rtcConfiguration + ', ' +
      data.constraints;
  peerConnectionElement.appendChild(p);

  return peerConnectionElement;
}
/**
 * Adds a peer connection.
 *
 * @param {!Object} data The object containing the pid, lid, url,
 *     rtcConfiguration, and constraints of a peer connection.
 */
Adds a peer connection.
@param {!Object} data The object containing the pid, lid, url,
rtcConfiguration, and constraints of a peer connection.
Adds a peer connection . @param { !Object } data The object containing the pid lid url rtcConfiguration and constraints of a peer connection .
function addPeerConnection(data) {
  var id = getPeerConnectionId(data);
  if (!peerConnectionDataStore[id]) {
    peerConnectionDataStore[id] = new PeerConnectionRecord();
  }
  peerConnectionDataStore[id].initialize(
      data.url, data.rtcConfiguration, data.constraints);
  var peerConnectionElement = $(id);
  if (!peerConnectionElement) {
    peerConnectionElement = tabView.addTab(id, data.url + ' [' + id + ']');
  }
  var p = document.createElement('p');
  p.textContent = data.url + ', ' + data.rtcConfiguration + ', ' +
      data.constraints;
  peerConnectionElement.appendChild(p);
  return peerConnectionElement;
}
function addPeerConnection ( data ) { var id = getPeerConnectionId ( data ) ; if ( ! peerConnectionDataStore [ id ] ) { peerConnectionDataStore [ id ] = new PeerConnectionRecord ( ) ; } peerConnectionDataStore [ id ] . initialize ( data . url , data . rtcConfiguration , data . constraints ) ; var peerConnectionElement = $ ( id ) ; if ( ! peerConnectionElement ) { peerConnectionElement = tabView . addTab ( id , data . url + ' [' + id + ']' ) ; } var p = document . createElement ( 'p' ) ; p . textContent = data . url + ', ' + data . rtcConfiguration + ', ' + data . constraints ; peerConnectionElement . appendChild ( p ) ; return peerConnectionElement ; }
Adds a peer connection.
Adds a peer connection .