fromMap static method

RtpEncodingParameters fromMap(
  1. Map data
)

Implementation

static RtpEncodingParameters fromMap(Map data) {
  return RtpEncodingParameters(
    codecPayloadType: data['codecPayloadType'],
    rtx: data['rtx'] != null ? RtxSsrc.fromMap(data['rtx']) : null,
    dtx: data['dtx'],
    scalabilityMode: data['scalabilityMode'],
    adaptivePtime: data['adaptivePtime'],
    priority: data['priority'] != null
        ? PriorityExtension.fromString(data['priority'])
        : null,
    networkPriority: data['networkPriority'] != null
        ? PriorityExtension.fromString(data['networkPriority'])
        : null,
    active: data['active'] ?? true,
    maxBitrate: data['maxBitrate'],
    maxFramerate: data['maxFramerate'],
    minBitrate: data['minBitrate'],
    numTemporalLayers: data['numTemporalLayers'],
    rid: data['rid'],
    scaleResolutionDownBy: data['scaleResolutionDownBy'],
    ssrc: data['ssrc'],
  );
}