ProtoRtpParameters constructor

ProtoRtpParameters({
  1. String? mid,
  2. Iterable<ProtoCodecParameters>? codecs,
  3. Iterable<ProtoHeaderExtensionParameters>? headerExtensions,
  4. Iterable<ProtoEncodings>? encodings,
  5. 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;
}