Revert "Implement read-only codecPayloadType in RtpParameters"
This reverts commit 806e06d1366b58878ced05cdd8d1d56394982fe6. Reason for revert: Breaks WebRTC roll to Chromium. https://chromium-review.googlesource.com/c/chromium/src/+/1375538 02:52:35.346 7748 [6936:11248:1213/025234.206:ERROR:mediaengine.cc(80)] Attempted to set RtpParameters with modified codecPayloadType (INVALID_MODIFICATION) Original change's description: > Implement read-only codecPayloadType in RtpParameters > > Bug: webrtc:7580 > Change-Id: I6d901afa97262b6c6d9fe6c7366df465ec77bfb3 > Reviewed-on: https://webrtc-review.googlesource.com/c/113944 > Reviewed-by: Sami Kalliomäki <sakal@webrtc.org> > Reviewed-by: Seth Hampson <shampson@webrtc.org> > Reviewed-by: Anders Carlsson <andersc@webrtc.org> > Reviewed-by: Steve Anton <steveanton@webrtc.org> > Commit-Queue: Florent Castelli <orphis@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#25993} TBR=steveanton@webrtc.org,sakal@webrtc.org,andersc@webrtc.org,shampson@webrtc.org,orphis@webrtc.org Change-Id: I157f9a79ae7133395431891e15e2c053559d359b No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: webrtc:7580 Reviewed-on: https://webrtc-review.googlesource.com/c/114300 Reviewed-by: Henrik Grunell <henrikg@webrtc.org> Commit-Queue: Henrik Grunell <henrikg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#26000}
This commit is contained in:
committed by
Commit Bot
parent
94c0f2645e
commit
e1301a8b3a
@ -30,9 +30,6 @@ public class RtpParameters {
|
||||
// Set to true to cause this encoding to be sent, and false for it not to
|
||||
// be sent.
|
||||
public boolean active = true;
|
||||
// The payloadType of the codec used by the sender.
|
||||
// Can't be changed between getParameters/setParameters.
|
||||
@Nullable public Integer codecPayloadType;
|
||||
// If non-null, this represents the Transport Independent Application
|
||||
// Specific maximum bandwidth defined in RFC3890. If null, there is no
|
||||
// maximum bitrate.
|
||||
@ -48,10 +45,9 @@ public class RtpParameters {
|
||||
public Long ssrc;
|
||||
|
||||
@CalledByNative("Encoding")
|
||||
Encoding(boolean active, Integer codecPayloadType, Integer maxBitrateBps, Integer minBitrateBps,
|
||||
Integer maxFramerate, Integer numTemporalLayers, Long ssrc) {
|
||||
Encoding(boolean active, Integer maxBitrateBps, Integer minBitrateBps, Integer maxFramerate,
|
||||
Integer numTemporalLayers, Long ssrc) {
|
||||
this.active = active;
|
||||
this.codecPayloadType = codecPayloadType;
|
||||
this.maxBitrateBps = maxBitrateBps;
|
||||
this.minBitrateBps = minBitrateBps;
|
||||
this.maxFramerate = maxFramerate;
|
||||
@ -59,12 +55,6 @@ public class RtpParameters {
|
||||
this.ssrc = ssrc;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@CalledByNative("Encoding")
|
||||
Integer getCodecPayloadType() {
|
||||
return codecPayloadType;
|
||||
}
|
||||
|
||||
@CalledByNative("Encoding")
|
||||
boolean getActive() {
|
||||
return active;
|
||||
|
||||
Reference in New Issue
Block a user