flutter webrtc problem

1. Error report:

Unable to RTCPeerConnection::setRemoteDescription: Failed to set remote answer sdp: Called with SDP without SDES crypto.

Solution: Change the value of DtlsSrtpKeyAgreement to true.

final Map<String, dynamic> loopback_constraints = {undefined
  "mandatory": {},
  "optional": [
    {"DtlsSrtpKeyAgreement": true},
  ],
};

Reference documentation: https://stackoverflow.com/questions/24062340/failed-to-set-remote-offer-sdp-called-with-sdp-without-sdes-crypto

 

 

Related: flutter webrtc problem