code: function fixPcConfig(pcConfig) {
  	if (!pcConfig) {
  		return {
  			iceServers: []
  		};
  	}
  
  	var iceServers = pcConfig.iceServers,
  		i, len, iceServer;
  
  	if (!Array.isArray(iceServers)) {
  		pcConfig.iceServers = [];
  		return pcConfig;
  	}
  
  	for (i = 0, len = iceServers.length; i < len; i++) {
  		iceServer = iceServers[i];
  
  		// THe Objective-C wrapper of WebRTC is old and does not implement .urls.
  		if (iceServer.url) {
  			continue;
  		} else if (Array.isArray(iceServer.urls)) {
  			iceServer.url = iceServer.urls[0];
  		} else if (typeof iceServer.urls === 'string') {
  			iceServer.url = iceServer.urls;
  		}
  	}
  
  	return pcConfig;
  }
docs: Private API.