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 ?? List<RtpCodecCapability>.from(old.codecs),
    headerExtensions: headerExtensions ??
        List<RtpHeaderExtension>.from(old.headerExtensions),
    fecMechanisms: fecMechanisms ?? List<String>.from(old.fecMechanisms),
  );
}