Deprecate setter RtpRtcpInterface::SetRid

This setter method is replaced by a construction-time config setting.

Bug: None
Change-Id: Iddffaeeb719a56328bccde3c4a1a0a852d2131b1
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/264501
Reviewed-by: Björn Terelius <terelius@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#37060}
This commit is contained in:
Niels Möller
2022-05-31 10:45:41 +02:00
committed by WebRTC LUCI CQ
parent 9453e5f4b3
commit af785d9759
5 changed files with 36 additions and 51 deletions

View File

@ -148,6 +148,12 @@ class RtpRtcpInterface : public RtcpFeedbackSenderInterface {
// Estimate RTT as non-sender as described in
// https://tools.ietf.org/html/rfc3611#section-4.4 and #section-4.5
bool non_sender_rtt_measurement = false;
// If non-empty, sets the value for sending in the RID (and Repaired) RTP
// header extension. RIDs are used to identify an RTP stream if SSRCs are
// not negotiated. If the RID and Repaired RID extensions are not
// registered, the RID will not be sent.
std::string rid;
};
// Stats for RTCP sender reports (SR) for a specific SSRC.
@ -256,7 +262,8 @@ class RtpRtcpInterface : public RtcpFeedbackSenderInterface {
// RIDs are used to identify an RTP stream if SSRCs are not negotiated.
// If the RID and Repaired RID extensions are not registered, the RID will
// not be sent.
virtual void SetRid(absl::string_view rid) = 0;
[[deprecated("Use the rid member of config struct instead'")]] virtual void
SetRid(absl::string_view rid) = 0;
// Sets the value for sending in the MID RTP header extension.
// The MID RTP header extension should be registered for this to do anything.