copy static method

RtpCapabilities copy(
  1. RtpCapabilities old, {
  2. List<RtpCodecCapability>? codecs,
  3. List<RtpHeaderExtension>? headerExtensions,
  4. List<String>? fecMechanisms,
})

Implementation

static RtpCapabilities copy(
  RtpCapabilities old, {
  List<RtpCodecCapability>? codecs,
  List<RtpHeaderExtension>? headerExtensions,
  List<String>? fecMechanisms,
}) {
  return RtpCapabilities(
    codecs:
        codecs != null ? codecs : List<RtpCodecCapability>.from(old.codecs),
    headerExtensions: headerExtensions != null
        ? headerExtensions
        : List<RtpHeaderExtension>.from(old.headerExtensions),
    fecMechanisms: fecMechanisms != null
        ? fecMechanisms
        : List<String>.from(old.fecMechanisms),
  );
}