flutter webrtc 问题

1.报错:

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

解决方案:DtlsSrtpKeyAgreement 的值改为true。

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

参考文档:https://stackoverflow.com/questions/24062340/failed-to-set-remote-offer-sdp-called-with-sdp-without-sdes-crypto

发布了44 篇原创文章 · 获赞 15 · 访问量 9万+

猜你喜欢

转载自blog.csdn.net/m0_37039192/article/details/95058795