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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 client.createPeerConnection(eglContext, localRenderer, remoteRenderer, signa
lingParameters); | 258 client.createPeerConnection(eglContext, localRenderer, remoteRenderer, signa
lingParameters); |
259 client.createOffer(); | 259 client.createOffer(); |
260 return client; | 260 return client; |
261 } | 261 } |
262 | 262 |
263 private PeerConnectionParameters createParametersForAudioCall() { | 263 private PeerConnectionParameters createParametersForAudioCall() { |
264 PeerConnectionParameters peerConnectionParameters = | 264 PeerConnectionParameters peerConnectionParameters = |
265 new PeerConnectionParameters( | 265 new PeerConnectionParameters( |
266 false, true, false, // videoCallEnabled, loopback, tracing. | 266 false, true, false, // videoCallEnabled, loopback, tracing. |
267 0, 0, 0, 0, "", true, false, // video codec parameters. | 267 0, 0, 0, 0, "", true, false, // video codec parameters. |
268 0, "OPUS", false, false, false); // audio codec parameters. | 268 0, "OPUS", false, false, false, false); // audio codec parameters. |
269 return peerConnectionParameters; | 269 return peerConnectionParameters; |
270 } | 270 } |
271 | 271 |
272 private PeerConnectionParameters createParametersForVideoCall( | 272 private PeerConnectionParameters createParametersForVideoCall( |
273 String videoCodec, boolean captureToTexture) { | 273 String videoCodec, boolean captureToTexture) { |
274 PeerConnectionParameters peerConnectionParameters = | 274 PeerConnectionParameters peerConnectionParameters = |
275 new PeerConnectionParameters( | 275 new PeerConnectionParameters( |
276 true, true, false, // videoCallEnabled, loopback, tracing. | 276 true, true, false, // videoCallEnabled, loopback, tracing. |
277 0, 0, 0, 0, videoCodec, true, captureToTexture, // video codec param
eters. | 277 0, 0, 0, 0, videoCodec, true, captureToTexture, // video codec param
eters. |
278 0, "OPUS", false, false, false); // audio codec parameters. | 278 0, "OPUS", false, false, false, false); // audio codec parameters. |
279 return peerConnectionParameters; | 279 return peerConnectionParameters; |
280 } | 280 } |
281 | 281 |
282 @Override | 282 @Override |
283 public void setUp() { | 283 public void setUp() { |
284 signalingExecutor = Executors.newSingleThreadExecutor(); | 284 signalingExecutor = Executors.newSingleThreadExecutor(); |
285 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { | 285 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { |
286 eglBase = EglBase.create(); | 286 eglBase = EglBase.create(); |
287 } | 287 } |
288 } | 288 } |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 assertTrue("Remote video frames were not rendered after capture format cha
nge.", | 624 assertTrue("Remote video frames were not rendered after capture format cha
nge.", |
625 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT)); | 625 remoteRenderer.waitForFramesRendered(WAIT_TIMEOUT)); |
626 } | 626 } |
627 | 627 |
628 pcClient.close(); | 628 pcClient.close(); |
629 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT)); | 629 assertTrue(waitForPeerConnectionClosed(WAIT_TIMEOUT)); |
630 Log.d(TAG, "testCaptureFormatChange done."); | 630 Log.d(TAG, "testCaptureFormatChange done."); |
631 } | 631 } |
632 | 632 |
633 } | 633 } |
OLD | NEW |