diff options
Diffstat (limited to 'webrtc/examples/peerconnection/client/conductor.cc')
-rw-r--r-- | webrtc/examples/peerconnection/client/conductor.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/webrtc/examples/peerconnection/client/conductor.cc b/webrtc/examples/peerconnection/client/conductor.cc index e3def9955f..883f44a77b 100644 --- a/webrtc/examples/peerconnection/client/conductor.cc +++ b/webrtc/examples/peerconnection/client/conductor.cc @@ -113,28 +113,22 @@ bool Conductor::CreatePeerConnection(bool dtls) { ASSERT(peer_connection_factory_.get() != NULL); ASSERT(peer_connection_.get() == NULL); - webrtc::PeerConnectionInterface::IceServers servers; + webrtc::PeerConnectionInterface::RTCConfiguration config; webrtc::PeerConnectionInterface::IceServer server; server.uri = GetPeerConnectionString(); - servers.push_back(server); + config.servers.push_back(server); webrtc::FakeConstraints constraints; if (dtls) { constraints.AddOptional(webrtc::MediaConstraintsInterface::kEnableDtlsSrtp, "true"); - } - else - { + } else { constraints.AddOptional(webrtc::MediaConstraintsInterface::kEnableDtlsSrtp, "false"); } - peer_connection_ = - peer_connection_factory_->CreatePeerConnection(servers, - &constraints, - NULL, - NULL, - this); + peer_connection_ = peer_connection_factory_->CreatePeerConnection( + config, &constraints, NULL, NULL, this); return peer_connection_.get() != NULL; } |