RtpCapabilities.fromMap constructor

RtpCapabilities.fromMap(
  1. 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'] ?? [];