Remove enable_dtls_srtp option

This is part of the removal of support for SDES.

Bug: webrtc:11066
Change-Id: I448d0e0032672c04c87b00550ab4b9d792071a0b
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/234864
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35262}
This commit is contained in:
Harald Alvestrand
2021-10-13 15:26:26 +00:00
committed by WebRTC LUCI CQ
parent aaa848e078
commit f9e502d935
19 changed files with 36 additions and 299 deletions

View File

@ -442,6 +442,10 @@ public class PeerConnectionClient {
decoderFactory = new SoftwareVideoDecoderFactory();
}
// Disable encryption for loopback calls.
if (peerConnectionParameters.loopback) {
options.disableEncryption = true;
}
factory = PeerConnectionFactory.builder()
.setOptions(options)
.setAudioDeviceModule(adm)
@ -600,8 +604,6 @@ public class PeerConnectionClient {
rtcConfig.continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy.GATHER_CONTINUALLY;
// Use ECDSA encryption.
rtcConfig.keyType = PeerConnection.KeyType.ECDSA;
// Enable DTLS for normal calls and disable for loopback calls.
rtcConfig.enableDtlsSrtp = !peerConnectionParameters.loopback;
rtcConfig.sdpSemantics = PeerConnection.SdpSemantics.UNIFIED_PLAN;
peerConnection = factory.createPeerConnection(rtcConfig, pcObserver);