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

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: make negotiate the default Created 5 years, 7 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
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.cpp ('k') | Source/platform/mediastream/RTCConfiguration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/modules/mediastream/RTCPeerConnection.cpp ('k') | Source/platform/mediastream/RTCConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698