RtpCapabilities.fromMap constructor
RtpCapabilities.fromMap(
- Map data
Implementation
RtpCapabilities.fromMap(Map data)
: codecs = data['codecs']
.map<RtpCodecCapability>(
(codec) => RtpCodecCapability.fromMap(codec))
.toList(),
headerExtensions = (data['headerExtensions'] as List<dynamic>)
.map<RtpHeaderExtension>(
(headExt) => RtpHeaderExtension.fromMap(headExt))
.toList(),
fecMechanisms = data['fecMechanisms'] ?? [];