Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1246)

Unified Diff: Source/platform/exported/WebRTCConfiguration.cpp

Issue 1116253004: Add RtcpMuxPolicy to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/exported/WebRTCConfiguration.cpp
diff --git a/Source/platform/exported/WebRTCConfiguration.cpp b/Source/platform/exported/WebRTCConfiguration.cpp
index 2ea6c70f036b062f26d3edadd38a2f147910defd..df1150dee6d2346b1bffd8539b4cc645ac59e5bc 100644
--- a/Source/platform/exported/WebRTCConfiguration.cpp
+++ b/Source/platform/exported/WebRTCConfiguration.cpp
@@ -130,4 +130,18 @@ WebRTCBundlePolicy WebRTCConfiguration::bundlePolicy() const
return WebRTCBundlePolicyBalanced;
}
+WebRTCRtcpMuxPolicy WebRTCConfiguration::rtcpMuxPolicy() const
+{
+ ASSERT(!isNull());
+ switch (m_private->rtcpMuxPolicy()) {
+ case RTCRtcpMuxPolicyNegotiate:
+ return WebRTCRtcpMuxPolicyNegotiate;
+ case RTCRtcpMuxPolicyRequire:
+ return WebRTCRtcpMuxPolicyRequire;
+ default:
+ ASSERT_NOT_REACHED();
+ }
+ return WebRTCRtcpMuxPolicyNegotiate;
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698