copy static method
RtpCapabilities
copy(
- RtpCapabilities old, {
- List<
RtpCodecCapability> ? codecs, - List<
RtpHeaderExtension> ? headerExtensions, - 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),
);
}