Skip to content

Commit b5b1994

Browse files
committed
update.
1 parent 310f5f8 commit b5b1994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/rtc_rtp_capabilities.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class RTCRtpCodecCapability {
1818
String? sdpFmtpLine;
1919
Map<String, dynamic> toMap() {
2020
return {
21-
'channels': channels,
21+
if (channels != null) 'channels': channels,
2222
'clockRate': clockRate,
2323
'mimeType': mimeType,
2424
if (sdpFmtpLine != null) 'sdpFmtpLine': sdpFmtpLine,
@@ -70,7 +70,7 @@ class RTCRtpCapabilities {
7070
return {
7171
'codecs': codecs?.map((e) => e.toMap()).toList(),
7272
'headerExtensions': headerExtensions?.map((e) => e.toMap()).toList(),
73-
'fecMechanisms': fecMechanisms,
73+
if (fecMechanisms != null) 'fecMechanisms': fecMechanisms,
7474
};
7575
}
7676
}

0 commit comments

Comments
 (0)