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

Unified Diff: media/cast/video_sender/video_sender.h

Issue 276783002: Cast: Reduce bitrate drastically when close to unacked frame limit (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sign fix Created 6 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 | « no previous file | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/video_sender/video_sender.h
diff --git a/media/cast/video_sender/video_sender.h b/media/cast/video_sender/video_sender.h
index 89ff938ae65d0bf0ee63eae15d3016d5af3414b8..6b147af526026c84d3f5ab0779c310c0dfdb8bc4 100644
--- a/media/cast/video_sender/video_sender.h
+++ b/media/cast/video_sender/video_sender.h
@@ -102,6 +102,8 @@ class VideoSender : public base::NonThreadSafe,
void InitializeTimers();
+ void UpdateBitrate(int32 new_bitrate);
+
base::TimeDelta rtp_max_delay_;
const int max_frame_rate_;
@@ -124,6 +126,10 @@ class VideoSender : public base::NonThreadSafe,
base::TimeTicks last_checked_skip_count_time_;
int last_skip_count_;
int current_requested_bitrate_;
+ // When we get close to the max number of un-acked frames, we set lower
+ // the bitrate drastically to ensure that we catch up. Without this we
+ // risk getting stuck in a catch-up state forever.
+ int current_bitrate_divider_;
CongestionControl congestion_control_;
// This is a "good enough" mapping for finding the RTP timestamp associated
« no previous file with comments | « no previous file | media/cast/video_sender/video_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698