@@ -58,6 +58,7 @@ class RTCRtpEncoding {
58
58
this .numTemporalLayers = 1 ,
59
59
this .scaleResolutionDownBy = 1.0 ,
60
60
this .ssrc,
61
+ this .scalabilityMode,
61
62
});
62
63
63
64
factory RTCRtpEncoding .fromMap (Map <dynamic , dynamic > map) => RTCRtpEncoding (
@@ -69,6 +70,7 @@ class RTCRtpEncoding {
69
70
numTemporalLayers: map['numTemporalLayers' ],
70
71
scaleResolutionDownBy: map['scaleResolutionDownBy' ],
71
72
ssrc: map['ssrc' ],
73
+ scalabilityMode: map['scalabilityMode' ],
72
74
);
73
75
74
76
/// If non-null, this represents the RID that identifies this encoding layer.
@@ -101,6 +103,8 @@ class RTCRtpEncoding {
101
103
/// Can't be changed between getParameters/setParameters.
102
104
int ? ssrc;
103
105
106
+ String ? scalabilityMode;
107
+
104
108
Map <String , dynamic > toMap () => {
105
109
'active' : active,
106
110
if (rid != null ) 'rid' : rid,
@@ -110,6 +114,7 @@ class RTCRtpEncoding {
110
114
if (numTemporalLayers != null ) 'numTemporalLayers' : numTemporalLayers,
111
115
if (scaleResolutionDownBy != null )
112
116
'scaleResolutionDownBy' : scaleResolutionDownBy,
117
+ if (scalabilityMode != null ) 'scalabilityMode' : scalabilityMode,
113
118
if (ssrc != null ) 'ssrc' : ssrc,
114
119
};
115
120
}
0 commit comments