RtpParameters.fromMap constructor
RtpParameters.fromMap(
- Map data
Implementation
RtpParameters.fromMap(Map data)
: mid = data['mid'],
codecs = List<RtpCodecParameters>.from(data['codecs']
.map((codec) => RtpCodecParameters.fromMap(codec))
.toList()),
headerExtensions = List<RtpHeaderExtensionParameters>.from(
data['headerExtensions']
.map((headerExtension) =>
RtpHeaderExtensionParameters.fromMap(headerExtension))
.toList()),
encodings = List<RtpEncodingParameters>.from(data['encodings']
.map((encoding) => RtpEncodingParameters.fromMap(encoding))
.toList()),
rtcp = RtcpParameters.fromMap(data['rtcp']);