We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 310f5f8 commit b5b1994Copy full SHA for b5b1994
lib/src/rtc_rtp_capabilities.dart
@@ -18,7 +18,7 @@ class RTCRtpCodecCapability {
18
String? sdpFmtpLine;
19
Map<String, dynamic> toMap() {
20
return {
21
- 'channels': channels,
+ if (channels != null) 'channels': channels,
22
'clockRate': clockRate,
23
'mimeType': mimeType,
24
if (sdpFmtpLine != null) 'sdpFmtpLine': sdpFmtpLine,
@@ -70,7 +70,7 @@ class RTCRtpCapabilities {
70
71
'codecs': codecs?.map((e) => e.toMap()).toList(),
72
'headerExtensions': headerExtensions?.map((e) => e.toMap()).toList(),
73
- 'fecMechanisms': fecMechanisms,
+ if (fecMechanisms != null) 'fecMechanisms': fecMechanisms,
74
};
75
}
76
0 commit comments