ProtoRtpParameters constructor
ProtoRtpParameters({
- String? mid,
- Iterable<
ProtoCodecParameters> ? codecs, - Iterable<
ProtoHeaderExtensionParameters> ? headerExtensions, - Iterable<
ProtoEncodings> ? encodings, - RtcpParameters? rtcp,
Implementation
factory ProtoRtpParameters({
$core.String? mid,
$core.Iterable<ProtoCodecParameters>? codecs,
$core.Iterable<ProtoHeaderExtensionParameters>? headerExtensions,
$core.Iterable<ProtoEncodings>? encodings,
RtcpParameters? rtcp,
}) {
final $result = create();
if (mid != null) {
$result.mid = mid;
}
if (codecs != null) {
$result.codecs.addAll(codecs);
}
if (headerExtensions != null) {
$result.headerExtensions.addAll(headerExtensions);
}
if (encodings != null) {
$result.encodings.addAll(encodings);
}
if (rtcp != null) {
$result.rtcp = rtcp;
}
return $result;
}