Skip to content

Commit 684bde2

Browse files
committed
Add scalabilityMode to RTCRtpEncoding.
1 parent 6c9a62d commit 684bde2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/rtc_rtp_parameters.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class RTCRtpEncoding {
5858
this.numTemporalLayers = 1,
5959
this.scaleResolutionDownBy = 1.0,
6060
this.ssrc,
61+
this.scalabilityMode,
6162
});
6263

6364
factory RTCRtpEncoding.fromMap(Map<dynamic, dynamic> map) => RTCRtpEncoding(
@@ -69,6 +70,7 @@ class RTCRtpEncoding {
6970
numTemporalLayers: map['numTemporalLayers'],
7071
scaleResolutionDownBy: map['scaleResolutionDownBy'],
7172
ssrc: map['ssrc'],
73+
scalabilityMode: map['scalabilityMode'],
7274
);
7375

7476
/// If non-null, this represents the RID that identifies this encoding layer.
@@ -101,6 +103,8 @@ class RTCRtpEncoding {
101103
/// Can't be changed between getParameters/setParameters.
102104
int? ssrc;
103105

106+
String? scalabilityMode;
107+
104108
Map<String, dynamic> toMap() => {
105109
'active': active,
106110
if (rid != null) 'rid': rid,
@@ -110,6 +114,7 @@ class RTCRtpEncoding {
110114
if (numTemporalLayers != null) 'numTemporalLayers': numTemporalLayers,
111115
if (scaleResolutionDownBy != null)
112116
'scaleResolutionDownBy': scaleResolutionDownBy,
117+
if (scalabilityMode != null) 'scalabilityMode': scalabilityMode,
113118
if (ssrc != null) 'ssrc': ssrc,
114119
};
115120
}

0 commit comments

Comments
 (0)