| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 factory.setVideoHwAccelerationOptions(renderEGLContext, renderEGLContext); | 452 factory.setVideoHwAccelerationOptions(renderEGLContext, renderEGLContext); |
| 453 } | 453 } |
| 454 | 454 |
| 455 PeerConnection.RTCConfiguration rtcConfig = | 455 PeerConnection.RTCConfiguration rtcConfig = |
| 456 new PeerConnection.RTCConfiguration(signalingParameters.iceServers); | 456 new PeerConnection.RTCConfiguration(signalingParameters.iceServers); |
| 457 // TCP candidates are only useful when connecting to a server that supports | 457 // TCP candidates are only useful when connecting to a server that supports |
| 458 // ICE-TCP. | 458 // ICE-TCP. |
| 459 rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED; | 459 rtcConfig.tcpCandidatePolicy = PeerConnection.TcpCandidatePolicy.DISABLED; |
| 460 rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE; | 460 rtcConfig.bundlePolicy = PeerConnection.BundlePolicy.MAXBUNDLE; |
| 461 rtcConfig.rtcpMuxPolicy = PeerConnection.RtcpMuxPolicy.REQUIRE; | 461 rtcConfig.rtcpMuxPolicy = PeerConnection.RtcpMuxPolicy.REQUIRE; |
| 462 rtcConfig.continualGatheringPolicy = PeerConnection.ContinualGatheringPolicy
.GATHER_CONTINUALLY; |
| 462 // Use ECDSA encryption. | 463 // Use ECDSA encryption. |
| 463 rtcConfig.keyType = PeerConnection.KeyType.ECDSA; | 464 rtcConfig.keyType = PeerConnection.KeyType.ECDSA; |
| 464 | 465 |
| 465 peerConnection = factory.createPeerConnection( | 466 peerConnection = factory.createPeerConnection( |
| 466 rtcConfig, pcConstraints, pcObserver); | 467 rtcConfig, pcConstraints, pcObserver); |
| 467 isInitiator = false; | 468 isInitiator = false; |
| 468 | 469 |
| 469 // Set default WebRTC tracing and INFO libjingle logging. | 470 // Set default WebRTC tracing and INFO libjingle logging. |
| 470 // NOTE: this _must_ happen while |factory| is alive! | 471 // NOTE: this _must_ happen while |factory| is alive! |
| 471 Logging.enableTracing( | 472 Logging.enableTracing( |
| (...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 public void onCreateFailure(final String error) { | 1107 public void onCreateFailure(final String error) { |
| 1107 reportError("createSDP error: " + error); | 1108 reportError("createSDP error: " + error); |
| 1108 } | 1109 } |
| 1109 | 1110 |
| 1110 @Override | 1111 @Override |
| 1111 public void onSetFailure(final String error) { | 1112 public void onSetFailure(final String error) { |
| 1112 reportError("setSDP error: " + error); | 1113 reportError("setSDP error: " + error); |
| 1113 } | 1114 } |
| 1114 } | 1115 } |
| 1115 } | 1116 } |
| OLD | NEW |