OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 } | 414 } |
415 queuedRemoteCandidates = new LinkedList<IceCandidate>(); | 415 queuedRemoteCandidates = new LinkedList<IceCandidate>(); |
416 | 416 |
417 PeerConnection.RTCConfiguration rtcConfig = | 417 PeerConnection.RTCConfiguration rtcConfig = |
418 new PeerConnection.RTCConfiguration(signalingParameters.iceServers); | 418 new PeerConnection.RTCConfiguration(signalingParameters.iceServers); |
419 // TCP candidates are only useful when connecting to a server that supports | 419 // TCP candidates are only useful when connecting to a server that supports |
420 // ICE-TCP. | 420 // ICE-TCP. |
421 rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED; | 421 rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED; |
422 rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE; | 422 rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE; |
423 rtcConfig.rtcpMuxPolicy = PeerConnection.RtcpMuxPolicy.REQUIRE; | 423 rtcConfig.rtcpMuxPolicy = PeerConnection.RtcpMuxPolicy.REQUIRE; |
| 424 // Use ECDSA encryption. |
| 425 rtcConfig.keyType = PeerConnection.KeyType.ECDSA; |
424 | 426 |
425 peerConnection = factory.createPeerConnection( | 427 peerConnection = factory.createPeerConnection( |
426 rtcConfig, pcConstraints, pcObserver); | 428 rtcConfig, pcConstraints, pcObserver); |
427 isInitiator = false; | 429 isInitiator = false; |
428 | 430 |
429 // Set default WebRTC tracing and INFO libjingle logging. | 431 // Set default WebRTC tracing and INFO libjingle logging. |
430 // NOTE: this _must_ happen while |factory| is alive! | 432 // NOTE: this _must_ happen while |factory| is alive! |
431 Logging.enableTracing( | 433 Logging.enableTracing( |
432 "logcat:", | 434 "logcat:", |
433 EnumSet.of(Logging.TraceLevel.TRACE_DEFAULT), | 435 EnumSet.of(Logging.TraceLevel.TRACE_DEFAULT), |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 public void onCreateFailure(final String error) { | 1006 public void onCreateFailure(final String error) { |
1005 reportError("createSDP error: " + error); | 1007 reportError("createSDP error: " + error); |
1006 } | 1008 } |
1007 | 1009 |
1008 @Override | 1010 @Override |
1009 public void onSetFailure(final String error) { | 1011 public void onSetFailure(final String error) { |
1010 reportError("setSDP error: " + error); | 1012 reportError("setSDP error: " + error); |
1011 } | 1013 } |
1012 } | 1014 } |
1013 } | 1015 } |
OLD | NEW |