Add support for target rate constraints
WebRTC video engine now configures bitrate on media transport correctly. Bug: webrtc:9719 Change-Id: I85884cd76644b7eca3763cec8ce9e31b5b64db27 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/127941 Commit-Queue: Peter Slatala <psla@webrtc.org> Reviewed-by: Steve Anton <steveanton@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Bjorn Mellem <mellem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27167}
This commit is contained in:
committed by
Commit Bot
parent
6b6f537e83
commit
946b968111
@ -103,6 +103,16 @@ class FakeMediaTransport : public MediaTransportInterface {
|
||||
void SetAllocatedBitrateLimits(
|
||||
const MediaTransportAllocatedBitrateLimits& limits) override {}
|
||||
|
||||
void SetTargetBitrateLimits(const MediaTransportTargetRateConstraints&
|
||||
target_rate_constraints) override {
|
||||
target_rate_constraints_in_order_.push_back(target_rate_constraints);
|
||||
}
|
||||
|
||||
const std::vector<MediaTransportTargetRateConstraints>&
|
||||
target_rate_constraints_in_order() {
|
||||
return target_rate_constraints_in_order_;
|
||||
}
|
||||
|
||||
int target_rate_observers_size() { return target_rate_observers_.size(); }
|
||||
|
||||
// Settings that were passed down to fake media transport.
|
||||
@ -133,6 +143,8 @@ class FakeMediaTransport : public MediaTransportInterface {
|
||||
const absl::optional<std::string> transport_offer_;
|
||||
const absl::optional<std::string> remote_transport_parameters_;
|
||||
bool is_connected_ = false;
|
||||
std::vector<MediaTransportTargetRateConstraints>
|
||||
target_rate_constraints_in_order_;
|
||||
};
|
||||
|
||||
// Fake media transport factory creates fake media transport.
|
||||
|
||||
Reference in New Issue
Block a user