Migrate from deprecated api in examples/
Bug: b/228975498 Change-Id: I25fbc7773d42cdb3a66f61bc8b030b15e6279fa5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258785 Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org> Auto-Submit: Björn Terelius <terelius@webrtc.org> Commit-Queue: Björn Terelius <terelius@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36535}
This commit is contained in:

committed by
WebRTC LUCI CQ

parent
a23ca6894d
commit
90f3c9053d
@ -190,8 +190,13 @@ bool Conductor::CreatePeerConnection() {
|
||||
server.uri = GetPeerConnectionString();
|
||||
config.servers.push_back(server);
|
||||
|
||||
peer_connection_ = peer_connection_factory_->CreatePeerConnection(
|
||||
config, nullptr, nullptr, this);
|
||||
webrtc::PeerConnectionDependencies pc_dependencies(this);
|
||||
auto error_or_peer_connection =
|
||||
peer_connection_factory_->CreatePeerConnectionOrError(
|
||||
config, std::move(pc_dependencies));
|
||||
if (error_or_peer_connection.ok()) {
|
||||
peer_connection_ = std::move(error_or_peer_connection.value());
|
||||
}
|
||||
return peer_connection_ != nullptr;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user