Adds remote estimate RTCP packet.
This adds the RemoteEstimate rtcp packet and wires it up to GoogCC where it's used to improve congestion controller behavior. The functionality is negotiated using SDP. It's added with a field trial that allow disabling the functionality in case there's any issues. Bug: webrtc:10742 Change-Id: I1ea8e4216a27cd2b00505c99b42d1e38726256c8 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/146602 Reviewed-by: Stefan Holmer <stefan@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#28654}
This commit is contained in:
committed by
Commit Bot
parent
1796a820f6
commit
e1795f4158
@ -24,6 +24,7 @@
|
||||
#include "api/rtp_headers.h"
|
||||
#include "api/transport/network_types.h"
|
||||
#include "modules/include/module_common_types.h"
|
||||
#include "modules/rtp_rtcp/source/rtcp_packet/remote_estimate.h"
|
||||
#include "system_wrappers/include/clock.h"
|
||||
|
||||
#define RTCP_CNAME_SIZE 256 // RFC 3550 page 44, including null termination
|
||||
@ -291,6 +292,11 @@ struct RtpPacketSendInfo {
|
||||
size_t length = 0;
|
||||
PacedPacketInfo pacing_info;
|
||||
};
|
||||
class NetworkStateEstimateObserver {
|
||||
public:
|
||||
virtual void OnRemoteNetworkEstimate(NetworkStateEstimate estimate) = 0;
|
||||
virtual ~NetworkStateEstimateObserver() = default;
|
||||
};
|
||||
|
||||
class TransportFeedbackObserver {
|
||||
public:
|
||||
@ -310,6 +316,8 @@ class RtcpFeedbackSenderInterface {
|
||||
virtual ~RtcpFeedbackSenderInterface() = default;
|
||||
virtual uint32_t SSRC() const = 0;
|
||||
virtual bool SendFeedbackPacket(const rtcp::TransportFeedback& feedback) = 0;
|
||||
virtual bool SendNetworkStateEstimatePacket(
|
||||
const rtcp::RemoteEstimate& packet) = 0;
|
||||
virtual void SetRemb(int64_t bitrate_bps, std::vector<uint32_t> ssrcs) = 0;
|
||||
virtual void UnsetRemb() = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user