From cee0dfb57a6e95ac7355d6015608c13ba99824ab Mon Sep 17 00:00:00 2001 From: "vikasmarwaha@webrtc.org" Date: Fri, 20 Sep 2013 21:26:07 +0000 Subject: [PATCH] Made sure that DTLS/SRTP is set to false in apprtc demo when testing loopback. See crbug/294881 for details. R=juberti@google.com, mallinath@webrtc.org Review URL: https://webrtc-codereview.appspot.com/2268004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@4805 4adac7df-926f-26a2-2b94-8c16560cd09d --- samples/js/apprtc/apprtc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/samples/js/apprtc/apprtc.py b/samples/js/apprtc/apprtc.py index 6bb65c8da..b5a8fcfa7 100644 --- a/samples/js/apprtc/apprtc.py +++ b/samples/js/apprtc/apprtc.py @@ -152,6 +152,10 @@ def make_pc_constraints(compat): # For interop with FireFox. Enable DTLS in peerConnection ctor. if compat.lower() == 'true': constraints['optional'].append({'DtlsSrtpKeyAgreement': True}) + # Disable DTLS in peerConnection ctor for loopback call. The value + # of compat is false for loopback mode. + else: + constraints['optional'].append({'DtlsSrtpKeyAgreement': False}) return constraints def make_offer_constraints():