美文网首页
webRTC开发心得

webRTC开发心得

作者: 小乐子不爱吃肉 | 来源:发表于2019-04-30 14:09 被阅读0次

peerConnection.setLocalDescription(SDPOfferObserver.this,sessionDescription);设置失败回调了SdpObserver中onSetFailure方法,失败信息为Failed to set remote offer sdp: Called with SDP without SDES crypto,是因为 创建链接对象时媒体约束对象中没有设置DTLS要在媒体对象中添加mediaConstraints.optional.add(new MediaConstraints.KeyValuePair("DtlsSrtpKeyAgreement", "true"));媒体约束,

相关文章

网友评论

      本文标题:webRTC开发心得

      本文链接:https://www.haomeiwen.com/subject/qsmjuttx.html