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

Unified Diff: webrtc/call/call.h

Issue 2793913008: Add PeerConnectionInterface::UpdateCallBitrate. (Closed)
Patch Set: add an error message and clarify test Created 3 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: webrtc/call/call.h
diff --git a/webrtc/call/call.h b/webrtc/call/call.h
index ec73bf7714926b2a6b04210f3c66a881f9acbedf..de2e1764f42877ea82b8de9cccbb4cfe4c6883ec 100644
--- a/webrtc/call/call.h
+++ b/webrtc/call/call.h
@@ -75,6 +75,12 @@ class Call {
int max_bitrate_bps = -1;
} bitrate_config;
+ struct BitrateConfigMask {
+ rtc::Optional<int> min_bitrate_bps;
+ rtc::Optional<int> start_bitrate_bps;
+ rtc::Optional<int> max_bitrate_bps;
+ };
Taylor Brandstetter 2017/04/07 03:29:12 Couldn't one struct be used by both PeerConnection
Zach Stein 2017/04/09 21:09:01 I did it this way because I wasn't sure where that
Taylor Brandstetter 2017/04/10 04:59:51 PeerConnectionInterface (being the "public interfa
stefan-webrtc 2017/04/10 13:26:58 But will we not want to have this also for ORTC at
+
// AudioState which is possibly shared between multiple calls.
// TODO(solenberg): Change this to a shared_ptr once we can use C++11.
rtc::scoped_refptr<AudioState> audio_state;
@@ -144,6 +150,8 @@ class Call {
virtual void SetBitrateConfig(
const Config::BitrateConfig& bitrate_config) = 0;
+ virtual void UpdateBitrateConfig(const Config::BitrateConfigMask& mask) = 0;
+
// TODO(skvlad): When the unbundled case with multiple streams for the same
// media type going over different networks is supported, track the state
// for each stream separately. Right now it's global per media type.

Powered by Google App Engine
This is Rietveld 408576698