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

Unified Diff: webrtc/modules/pacing/packet_router.h

Issue 2994513002: Add PacketRouter::SetMaxDesiredReceiveBitrate for application limited receive bandwidth (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | webrtc/modules/pacing/packet_router.cc » ('j') | webrtc/modules/pacing/packet_router.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/pacing/packet_router.h
diff --git a/webrtc/modules/pacing/packet_router.h b/webrtc/modules/pacing/packet_router.h
index e5abdeb2ab18e2dec47ec4734aa44720bc4f65a1..0d3a124331a580230643db2b362526fda289ac26 100644
--- a/webrtc/modules/pacing/packet_router.h
+++ b/webrtc/modules/pacing/packet_router.h
@@ -83,6 +83,10 @@ class PacketRouter : public PacedSender::PacketSender,
void OnReceiveBitrateChanged(const std::vector<uint32_t>& ssrcs,
uint32_t bitrate_bps) override;
+ // Configures max cap for reporting estimated bandwidth.
+ // May trigger sending REMB feedback.
+ void SetMaxEstimatedBandwidth(uint32_t bitrate_bps);
+
// Send REMB feedback.
virtual bool SendRemb(uint32_t bitrate_bps,
const std::vector<uint32_t>& ssrcs);
@@ -111,6 +115,7 @@ class PacketRouter : public PacedSender::PacketSender,
uint32_t last_send_bitrate_bps_ GUARDED_BY(remb_crit_);
// The last bitrate update.
uint32_t bitrate_bps_ GUARDED_BY(remb_crit_);
+ uint32_t max_bitrate_bps_ GUARDED_BY(remb_crit_);
// Candidates for the REMB module can be RTP sender/receiver modules, with
// the sender modules taking precedence.
« no previous file with comments | « no previous file | webrtc/modules/pacing/packet_router.cc » ('j') | webrtc/modules/pacing/packet_router.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698