Use CreatePeerConnection method which accepts port_allocator.

Other method will be removed, in a different CL.

R=fischman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/20369006

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5987 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
mallinath@webrtc.org 2014-04-26 00:00:15 +00:00
parent 95cd1551f8
commit a0d3067575
3 changed files with 3 additions and 1 deletions

View File

@ -2065,7 +2065,7 @@ JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)(
PCOJava* observer = reinterpret_cast<PCOJava*>(observer_p);
observer->SetConstraints(new ConstraintsWrapper(jni, j_constraints));
talk_base::scoped_refptr<PeerConnectionInterface> pc(f->CreatePeerConnection(
servers, observer->constraints(), NULL, observer));
servers, observer->constraints(), NULL, NULL, observer));
return (jlong)pc.release();
}

View File

@ -100,6 +100,7 @@
talk_base::scoped_refptr<webrtc::PeerConnectionInterface> peerConnection =
self.nativeFactory->CreatePeerConnection(iceServers,
constraints.constraints,
NULL,
dummy_dtls_identity_service,
observer);
RTCPeerConnection* pc =

View File

@ -103,6 +103,7 @@ bool Conductor::InitializePeerConnection() {
server.uri = GetPeerConnectionString();
servers.push_back(server);
peer_connection_ = peer_connection_factory_->CreatePeerConnection(servers,
NULL,
NULL,
NULL,
this);