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:
parent
95cd1551f8
commit
a0d3067575
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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 =
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user