Revert "Add bindings for simulcast and RIDs in Android SDK."
This reverts commit 177670afd6d4aa414e4aa75983da538b7f350ee8. Reason for revert: Fails android_instrumentation_test_apk: https://ci.chromium.org/p/webrtc/builders/ci/Android64%20(M%20Nexus5X)/11553 Original change's description: > Add bindings for simulcast and RIDs in Android SDK. > > This adds the bindings for rid in RtpParameters.Encoding and bindings > for send_encodings in RtpTransceiverInit to allow creating a transceiver > with multiple send encodings. > > Bug: webrtc:10464 > Change-Id: I4c205dc0f466768c63b7efcb3c68e93277236da0 > Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/128960 > Reviewed-by: Magnus Jedvert <magjed@webrtc.org> > Reviewed-by: Seth Hampson <shampson@webrtc.org> > Commit-Queue: Amit Hilbuch <amithi@webrtc.org> > Cr-Commit-Position: refs/heads/master@{#27323} TBR=magjed@webrtc.org,shampson@webrtc.org,amithi@webrtc.org Change-Id: Id6c4e2d41c3c2fbfad31baed907cfa73d82ef14a No-Tree-Checks: True No-Try: True Bug: webrtc:10464 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/130466 Commit-Queue: Oleh Prypin <oprypin@webrtc.org> Reviewed-by: Oleh Prypin <oprypin@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27354}
This commit is contained in:
@ -12,7 +12,6 @@ package org.webrtc;
|
||||
|
||||
import android.support.annotation.Nullable;
|
||||
import java.lang.Double;
|
||||
import java.lang.String;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@ -29,9 +28,6 @@ import org.webrtc.MediaStreamTrack;
|
||||
*/
|
||||
public class RtpParameters {
|
||||
public static class Encoding {
|
||||
// If non-null, this represents the RID that identifies this encoding layer.
|
||||
// RIDs are used to identify layers in simulcast.
|
||||
@Nullable public String rid;
|
||||
// Set to true to cause this encoding to be sent, and false for it not to
|
||||
// be sent.
|
||||
public boolean active = true;
|
||||
@ -52,17 +48,9 @@ public class RtpParameters {
|
||||
// Can't be changed between getParameters/setParameters.
|
||||
public Long ssrc;
|
||||
|
||||
// This constructor is useful for creating simulcast layers.
|
||||
Encoding(String rid, boolean active, Double scaleResolutionDownBy) {
|
||||
this.rid = rid;
|
||||
this.active = active;
|
||||
this.scaleResolutionDownBy = scaleResolutionDownBy;
|
||||
}
|
||||
|
||||
@CalledByNative("Encoding")
|
||||
Encoding(String rid, boolean active, Integer maxBitrateBps, Integer minBitrateBps,
|
||||
Integer maxFramerate, Integer numTemporalLayers, Double scaleResolutionDownBy, Long ssrc) {
|
||||
this.rid = rid;
|
||||
Encoding(boolean active, Integer maxBitrateBps, Integer minBitrateBps, Integer maxFramerate,
|
||||
Integer numTemporalLayers, Double scaleResolutionDownBy, Long ssrc) {
|
||||
this.active = active;
|
||||
this.maxBitrateBps = maxBitrateBps;
|
||||
this.minBitrateBps = minBitrateBps;
|
||||
@ -72,12 +60,6 @@ public class RtpParameters {
|
||||
this.ssrc = ssrc;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@CalledByNative("Encoding")
|
||||
String getRid() {
|
||||
return rid;
|
||||
}
|
||||
|
||||
@CalledByNative("Encoding")
|
||||
boolean getActive() {
|
||||
return active;
|
||||
|
||||
Reference in New Issue
Block a user