Export the standardized IceConnectionState.
Since a lot of native users have taken dependencies on our old, non-standard behaviour
we'll have to have two ice connection states living side by side until we can get rid
of the old one.
Bug: webrtc:6145
Change-Id: I9b673bffeb1dfcf410f7c56d4def5912121e644c
Reviewed-on: https://webrtc-review.googlesource.com/c/113421
Reviewed-by: Karl Wiberg <kwiberg@webrtc.org>
Reviewed-by: Steve Anton <steveanton@webrtc.org>
Commit-Queue: Jonas Olsson <jonasolsson@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25929}
diff --git a/api/peerconnectioninterface.cc b/api/peerconnectioninterface.cc
index 665760c9..a9b95a9 100644
--- a/api/peerconnectioninterface.cc
+++ b/api/peerconnectioninterface.cc
@@ -160,9 +160,14 @@
return SetBitrate(bitrate);
}
+PeerConnectionInterface::IceConnectionState
+PeerConnectionInterface::standardized_ice_connection_state() {
+ return PeerConnectionInterface::IceConnectionState::kIceConnectionFailed;
+}
+
PeerConnectionInterface::PeerConnectionState
PeerConnectionInterface::peer_connection_state() {
- return PeerConnectionInterface::PeerConnectionState::kNew;
+ return PeerConnectionInterface::PeerConnectionState::kFailed;
}
bool PeerConnectionInterface::StartRtcEventLog(rtc::PlatformFile file,