Add Rtcp parameters for PeerConnection senders
Bug: webrtc:7580 Change-Id: Ibcf5e849a1f11f21fa75f6d006fecf1cd54f8552 Reviewed-on: https://webrtc-review.googlesource.com/78063 Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Reviewed-by: Kári Helgason <kthelgason@webrtc.org> Commit-Queue: Florent Castelli <orphis@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23407}
This commit is contained in:
committed by
Commit Bot
parent
b06b0a689f
commit
dacec71b16
@ -17,42 +17,13 @@
|
||||
#include "api/ortc/packettransportinterface.h"
|
||||
#include "api/rtcerror.h"
|
||||
#include "api/rtp_headers.h"
|
||||
#include "api/rtpparameters.h"
|
||||
#include "common_types.h" // NOLINT(build/include)
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
class RtpTransportAdapter;
|
||||
|
||||
struct RtcpParameters final {
|
||||
// The SSRC to be used in the "SSRC of packet sender" field. If not set, one
|
||||
// will be chosen by the implementation.
|
||||
// TODO(deadbeef): Not implemented.
|
||||
rtc::Optional<uint32_t> ssrc;
|
||||
|
||||
// The Canonical Name (CNAME) used by RTCP (e.g. in SDES messages).
|
||||
//
|
||||
// If empty in the construction of the RtpTransport, one will be generated by
|
||||
// the implementation, and returned in GetRtcpParameters. Multiple
|
||||
// RtpTransports created by the same OrtcFactory will use the same generated
|
||||
// CNAME.
|
||||
//
|
||||
// If empty when passed into SetParameters, the CNAME simply won't be
|
||||
// modified.
|
||||
std::string cname;
|
||||
|
||||
// Send reduced-size RTCP?
|
||||
bool reduced_size = false;
|
||||
|
||||
// Send RTCP multiplexed on the RTP transport?
|
||||
bool mux = true;
|
||||
|
||||
bool operator==(const RtcpParameters& o) const {
|
||||
return ssrc == o.ssrc && cname == o.cname &&
|
||||
reduced_size == o.reduced_size && mux == o.mux;
|
||||
}
|
||||
bool operator!=(const RtcpParameters& o) const { return !(*this == o); }
|
||||
};
|
||||
|
||||
struct RtpTransportParameters final {
|
||||
RtcpParameters rtcp;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user