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
This commit is contained in:
vikasmarwaha@webrtc.org 2013-09-20 21:26:07 +00:00
parent 10e6cc7e23
commit cee0dfb57a

View File

@ -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():