PeerConnectOption constructor

PeerConnectOption({
  1. String? label,
  2. dynamic metadata,
  3. String? serialization,
  4. bool? reliable,
  5. String? connectionId,
  6. dynamic payload,
  7. dynamic sdpTransform(
    1. String sdp
    )?,
  8. Map<String, String>? sdp,
  9. Map<String, dynamic>? constraints,
  10. String? type,
  11. dynamic msg,
  12. Map? candidate,
})

Implementation

PeerConnectOption(
    {this.label,
    this.metadata,
    this.serialization,
    this.reliable,
    this.connectionId,
    this.payload,
    this.sdpTransform,
    Map<String, String>? sdp,
    Map<String, dynamic>? constraints,
    this.type,
    this.msg,
    this.candidate})
    : sdp = sdp ?? {},
      constraints = constraints ??
          {
            "mandatory": {"OfferToReceiveAudio": true, "OfferToReceiveVideo": true},
            "optional": [
              {"DtlsSrtpKeyAgreement": true},
              {"googImprovedWifiBwe": true}
            ]
          };