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:
@ -152,6 +152,10 @@ def make_pc_constraints(compat):
|
|||||||
# For interop with FireFox. Enable DTLS in peerConnection ctor.
|
# For interop with FireFox. Enable DTLS in peerConnection ctor.
|
||||||
if compat.lower() == 'true':
|
if compat.lower() == 'true':
|
||||||
constraints['optional'].append({'DtlsSrtpKeyAgreement': 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
|
return constraints
|
||||||
|
|
||||||
def make_offer_constraints():
|
def make_offer_constraints():
|
||||||
|
Reference in New Issue
Block a user