
peerConnection.setLocalDescription(SDPOfferObserver.this,sessionDescription);設(shè)置失敗回調(diào)了SdpObserver中onSetFailure方法,失敗信息為Failed to set remote offer sdp: Called with SDP without SDES crypto,是因為 創(chuàng)建鏈接對象時媒體約束對象中沒有設(shè)置DTLS要在媒體對象中添加mediaConstraints.optional.add(new MediaConstraints.KeyValuePair("DtlsSrtpKeyAgreement", "true"));媒體約束,
