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

Unified Diff: webrtc/pc/peerconnection.cc

Issue 2877933004: objc wrapper for PeerConnection::SetBitrate (Closed)
Patch Set: Created 3 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
Index: webrtc/pc/peerconnection.cc
diff --git a/webrtc/pc/peerconnection.cc b/webrtc/pc/peerconnection.cc
index a3981039e6cfe89554092b4c14d7f2f7b0f175e4..20dbdd333222f4f80f924e1971d3dfdca5eba5c0 100644
--- a/webrtc/pc/peerconnection.cc
+++ b/webrtc/pc/peerconnection.cc
@@ -1235,6 +1235,16 @@ void PeerConnection::RegisterUMAObserver(UMAObserver* observer) {
}
}
+// Stub implementation fails if current_bitrate_bps is set and succeeds
+// otherwise.
+RTCError PeerConnection::SetBitrate(const BitrateParameters& bitrate) {
+ if (bitrate.current_bitrate_bps) {
+ return RTCError(RTCErrorType::INVALID_PARAMETER);
+ } else {
+ return RTCError::OK();
+ }
+}
+
bool PeerConnection::StartRtcEventLog(rtc::PlatformFile file,
int64_t max_size_bytes) {
return factory_->worker_thread()->Invoke<bool>(

Powered by Google App Engine
This is Rietveld 408576698