[iOS] Added an initialization method to RTCConfiguration that takes a

native configuration.
Added a getConfiguration getter method to RTCPeerConnection to return
the RTCConfiguration.

BUG=webrtc:7431

Review-Url: https://codereview.webrtc.org/2790833002
Cr-Commit-Position: refs/heads/master@{#17517}
This commit is contained in:
jtteh
2017-04-03 15:06:37 -07:00
committed by Commit bot
parent 9ab17d3478
commit 4eeb53748a
8 changed files with 182 additions and 20 deletions

View File

@ -288,6 +288,12 @@ void PeerConnectionDelegateAdapter::OnIceCandidatesRemoved(
return _peerConnection->SetConfiguration(*config);
}
- (RTCConfiguration *)configuration {
webrtc::PeerConnectionInterface::RTCConfiguration config =
_peerConnection->GetConfiguration();
return [[RTCConfiguration alloc] initWithNativeConfiguration:&config];
}
- (void)close {
_peerConnection->Close();
}