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:
Florent Castelli
2018-05-24 16:24:21 +02:00
committed by Commit Bot
parent b06b0a689f
commit dacec71b16
16 changed files with 248 additions and 36 deletions

View File

@ -118,8 +118,33 @@ public class RtpParameters {
}
}
public static class Rtcp {
/** The Canonical Name used by RTCP */
private final String cname;
/** Whether reduced size RTCP is configured or compound RTCP */
private final boolean reducedSize;
@CalledByNative("Rtcp")
Rtcp(String cname, boolean reducedSize) {
this.cname = cname;
this.reducedSize = reducedSize;
}
@CalledByNative("Rtcp")
public String getCname() {
return cname;
}
@CalledByNative("Rtcp")
public boolean getReducedSize() {
return reducedSize;
}
}
public final String transactionId;
private final Rtcp rtcp;
public final List<Encoding> encodings;
// Codec parameters can't currently be changed between getParameters and
// setParameters. Though in the future it will be possible to reorder them or
@ -127,8 +152,9 @@ public class RtpParameters {
public final List<Codec> codecs;
@CalledByNative
RtpParameters(String transactionId, List<Encoding> encodings, List<Codec> codecs) {
RtpParameters(String transactionId, Rtcp rtcp, List<Encoding> encodings, List<Codec> codecs) {
this.transactionId = transactionId;
this.rtcp = rtcp;
this.encodings = encodings;
this.codecs = codecs;
}
@ -138,6 +164,11 @@ public class RtpParameters {
return transactionId;
}
@CalledByNative
public Rtcp getRtcp() {
return rtcp;
}
@CalledByNative
List<Encoding> getEncodings() {
return encodings;