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:
@ -2065,7 +2065,7 @@ JOW(jlong, PeerConnectionFactory_nativeCreatePeerConnection)(
|
|||||||
PCOJava* observer = reinterpret_cast<PCOJava*>(observer_p);
|
PCOJava* observer = reinterpret_cast<PCOJava*>(observer_p);
|
||||||
observer->SetConstraints(new ConstraintsWrapper(jni, j_constraints));
|
observer->SetConstraints(new ConstraintsWrapper(jni, j_constraints));
|
||||||
talk_base::scoped_refptr<PeerConnectionInterface> pc(f->CreatePeerConnection(
|
talk_base::scoped_refptr<PeerConnectionInterface> pc(f->CreatePeerConnection(
|
||||||
servers, observer->constraints(), NULL, observer));
|
servers, observer->constraints(), NULL, NULL, observer));
|
||||||
return (jlong)pc.release();
|
return (jlong)pc.release();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,6 +100,7 @@
|
|||||||
talk_base::scoped_refptr<webrtc::PeerConnectionInterface> peerConnection =
|
talk_base::scoped_refptr<webrtc::PeerConnectionInterface> peerConnection =
|
||||||
self.nativeFactory->CreatePeerConnection(iceServers,
|
self.nativeFactory->CreatePeerConnection(iceServers,
|
||||||
constraints.constraints,
|
constraints.constraints,
|
||||||
|
NULL,
|
||||||
dummy_dtls_identity_service,
|
dummy_dtls_identity_service,
|
||||||
observer);
|
observer);
|
||||||
RTCPeerConnection* pc =
|
RTCPeerConnection* pc =
|
||||||
|
@ -103,6 +103,7 @@ bool Conductor::InitializePeerConnection() {
|
|||||||
server.uri = GetPeerConnectionString();
|
server.uri = GetPeerConnectionString();
|
||||||
servers.push_back(server);
|
servers.push_back(server);
|
||||||
peer_connection_ = peer_connection_factory_->CreatePeerConnection(servers,
|
peer_connection_ = peer_connection_factory_->CreatePeerConnection(servers,
|
||||||
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
this);
|
this);
|
||||||
|
Reference in New Issue
Block a user