Dear Vikas,
Thank you.
I'm developing P2P audio/video chat application based on WebRTC native api but not broswer. So i add the code as below item-A to disable DTLS-SRTP, and check dtls_enabled_ flag in webrtcsession.cc is false as below item-B. Could you tell me what my done is right to disable DTSL-SRTP feature and just RTP?
item-A:
webrtc::FakeConstraints setup_constraints;
setup_constraints.AddMandatory(webrtc::MediaConstraintsInterface::kEnableDtlsSrtp,false);
setup_constraints.AddMandatory(webrtc::MediaConstraintsInterface::kEnableRtpDataChannels,true);
peer_connection_ = peer_connection_factory_->CreatePeerConnection(servers,
&setup_constraints,
NULL,
this);
item-B:
// Enable DTLS by default if |dtls_identity_service| is valid.
dtls_enabled_ = (dtls_identity_service != NULL);
// |constraints| can override the default |dtls_enabled_| value.
if (FindConstraint(
constraints,
MediaConstraintsInterface::kEnableDtlsSrtp,
&value, NULL)) {
dtls_enabled_ = value;
}
LOG(LS_INFO) << "XF_SRTP: dtls_enabled_ is " <<dtls_enabled_;
在 2014年9月23日星期二UTC+8上午2时55分11秒,Vikas写道: