Added protobuf message for loss-based BWE events, and wired it up to the send side bandwidth estimator.
BUG= Review URL: https://codereview.webrtc.org/1411673003 Cr-Commit-Position: refs/heads/master@{#10531}
This commit is contained in:
@ -19,6 +19,9 @@
|
||||
#include "webrtc/system_wrappers/include/critical_section_wrapper.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
class RtcEventLog;
|
||||
|
||||
class SendSideBandwidthEstimation {
|
||||
public:
|
||||
SendSideBandwidthEstimation();
|
||||
@ -42,6 +45,8 @@ class SendSideBandwidthEstimation {
|
||||
void SetMinMaxBitrate(int min_bitrate, int max_bitrate);
|
||||
int GetMinBitrate() const;
|
||||
|
||||
void SetEventLog(RtcEventLog* event_log);
|
||||
|
||||
private:
|
||||
enum UmaState { kNoUpdate, kFirstDone, kDone };
|
||||
|
||||
@ -81,6 +86,7 @@ class SendSideBandwidthEstimation {
|
||||
int bitrate_at_2_seconds_kbps_;
|
||||
UmaState uma_update_state_;
|
||||
std::vector<bool> rampup_uma_stats_updated_;
|
||||
RtcEventLog* event_log_;
|
||||
};
|
||||
} // namespace webrtc
|
||||
#endif // WEBRTC_MODULES_BITRATE_CONTROLLER_SEND_SIDE_BANDWIDTH_ESTIMATION_H_
|
||||
|
||||
Reference in New Issue
Block a user