ProtoRtpCapabilities constructor

ProtoRtpCapabilities({
  1. Iterable<ProtoRtpCodecCapability>? codecs,
  2. Iterable<ProtoRtpHeaderExtension>? headerExtensions,
})

Implementation

factory ProtoRtpCapabilities({
  $core.Iterable<ProtoRtpCodecCapability>? codecs,
  $core.Iterable<ProtoRtpHeaderExtension>? headerExtensions,
}) {
  final $result = create();
  if (codecs != null) {
    $result.codecs.addAll(codecs);
  }
  if (headerExtensions != null) {
    $result.headerExtensions.addAll(headerExtensions);
  }
  return $result;
}