webRTC开发心得

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开发心得)