@@ -76,6 +76,8 @@ public static class Encoding {
76
76
// If non-null, scale the width and height down by this factor for video. If null,
77
77
// implementation default scaling factor will be used.
78
78
@ Nullable public Double scaleResolutionDownBy ;
79
+ // Scalability modes are used to represent simulcast and SVC layers.
80
+ @ Nullable public String scalabilityMode ;
79
81
// SSRC to be used by this encoding.
80
82
// Can't be changed between getParameters/setParameters.
81
83
public Long ssrc ;
@@ -93,8 +95,8 @@ public Encoding(String rid, boolean active, Double scaleResolutionDownBy) {
93
95
@ CalledByNative ("Encoding" )
94
96
Encoding (String rid , boolean active , double bitratePriority , @ Priority int networkPriority ,
95
97
Integer maxBitrateBps , Integer minBitrateBps , Integer maxFramerate ,
96
- Integer numTemporalLayers , Double scaleResolutionDownBy , Long ssrc ,
97
- boolean adaptiveAudioPacketTime ) {
98
+ Integer numTemporalLayers , Double scaleResolutionDownBy , String scalabilityMode ,
99
+ Long ssrc , boolean adaptiveAudioPacketTime ) {
98
100
this .rid = rid ;
99
101
this .active = active ;
100
102
this .bitratePriority = bitratePriority ;
@@ -104,6 +106,7 @@ public Encoding(String rid, boolean active, Double scaleResolutionDownBy) {
104
106
this .maxFramerate = maxFramerate ;
105
107
this .numTemporalLayers = numTemporalLayers ;
106
108
this .scaleResolutionDownBy = scaleResolutionDownBy ;
109
+ this .scalabilityMode = scalabilityMode ;
107
110
this .ssrc = ssrc ;
108
111
this .adaptiveAudioPacketTime = adaptiveAudioPacketTime ;
109
112
}
@@ -160,6 +163,12 @@ Double getScaleResolutionDownBy() {
160
163
return scaleResolutionDownBy ;
161
164
}
162
165
166
+ @ Nullable
167
+ @ CalledByNative ("Encoding" )
168
+ String getScalabilityMode () {
169
+ return scalabilityMode ;
170
+ }
171
+
163
172
@ CalledByNative ("Encoding" )
164
173
Long getSsrc () {
165
174
return ssrc ;
0 commit comments