Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: webrtc/examples/androidapp/src/org/appspot/apprtc/CallActivity.java

Issue 2184653002: Add an option to disable built-in AGC/NS to AppRTC Demo. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 public static final String EXTRA_AUDIOCODEC = 77 public static final String EXTRA_AUDIOCODEC =
78 "org.appspot.apprtc.AUDIOCODEC"; 78 "org.appspot.apprtc.AUDIOCODEC";
79 public static final String EXTRA_NOAUDIOPROCESSING_ENABLED = 79 public static final String EXTRA_NOAUDIOPROCESSING_ENABLED =
80 "org.appspot.apprtc.NOAUDIOPROCESSING"; 80 "org.appspot.apprtc.NOAUDIOPROCESSING";
81 public static final String EXTRA_AECDUMP_ENABLED = 81 public static final String EXTRA_AECDUMP_ENABLED =
82 "org.appspot.apprtc.AECDUMP"; 82 "org.appspot.apprtc.AECDUMP";
83 public static final String EXTRA_OPENSLES_ENABLED = 83 public static final String EXTRA_OPENSLES_ENABLED =
84 "org.appspot.apprtc.OPENSLES"; 84 "org.appspot.apprtc.OPENSLES";
85 public static final String EXTRA_DISABLE_BUILT_IN_AEC = 85 public static final String EXTRA_DISABLE_BUILT_IN_AEC =
86 "org.appspot.apprtc.DISABLE_BUILT_IN_AEC"; 86 "org.appspot.apprtc.DISABLE_BUILT_IN_AEC";
87 public static final String EXTRA_DISABLE_BUILT_IN_AGC =
88 "org.appspot.apprtc.DISABLE_BUILT_IN_AGC";
89 public static final String EXTRA_DISABLE_BUILT_IN_NS =
90 "org.appspot.apprtc.DISABLE_BUILT_IN_NS";
87 public static final String EXTRA_DISPLAY_HUD = 91 public static final String EXTRA_DISPLAY_HUD =
88 "org.appspot.apprtc.DISPLAY_HUD"; 92 "org.appspot.apprtc.DISPLAY_HUD";
89 public static final String EXTRA_TRACING = "org.appspot.apprtc.TRACING"; 93 public static final String EXTRA_TRACING = "org.appspot.apprtc.TRACING";
90 public static final String EXTRA_CMDLINE = 94 public static final String EXTRA_CMDLINE =
91 "org.appspot.apprtc.CMDLINE"; 95 "org.appspot.apprtc.CMDLINE";
92 public static final String EXTRA_RUNTIME = 96 public static final String EXTRA_RUNTIME =
93 "org.appspot.apprtc.RUNTIME"; 97 "org.appspot.apprtc.RUNTIME";
94 private static final String TAG = "CallRTCClient"; 98 private static final String TAG = "CallRTCClient";
95 99
96 // List of mandatory application permissions. 100 // List of mandatory application permissions.
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 intent.getIntExtra(EXTRA_VIDEO_FPS, 0), 244 intent.getIntExtra(EXTRA_VIDEO_FPS, 0),
241 intent.getIntExtra(EXTRA_VIDEO_BITRATE, 0), 245 intent.getIntExtra(EXTRA_VIDEO_BITRATE, 0),
242 intent.getStringExtra(EXTRA_VIDEOCODEC), 246 intent.getStringExtra(EXTRA_VIDEOCODEC),
243 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true), 247 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true),
244 intent.getBooleanExtra(EXTRA_CAPTURETOTEXTURE_ENABLED, false), 248 intent.getBooleanExtra(EXTRA_CAPTURETOTEXTURE_ENABLED, false),
245 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0), 249 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0),
246 intent.getStringExtra(EXTRA_AUDIOCODEC), 250 intent.getStringExtra(EXTRA_AUDIOCODEC),
247 intent.getBooleanExtra(EXTRA_NOAUDIOPROCESSING_ENABLED, false), 251 intent.getBooleanExtra(EXTRA_NOAUDIOPROCESSING_ENABLED, false),
248 intent.getBooleanExtra(EXTRA_AECDUMP_ENABLED, false), 252 intent.getBooleanExtra(EXTRA_AECDUMP_ENABLED, false),
249 intent.getBooleanExtra(EXTRA_OPENSLES_ENABLED, false), 253 intent.getBooleanExtra(EXTRA_OPENSLES_ENABLED, false),
250 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_AEC, false)); 254 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_AEC, false),
255 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_AGC, false),
256 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_NS, false));
251 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false); 257 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false);
252 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0); 258 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0);
253 259
254 // Create connection client. Use DirectRTCClient if room name is an IP other wise use the 260 // Create connection client. Use DirectRTCClient if room name is an IP other wise use the
255 // standard WebSocketRTCClient. 261 // standard WebSocketRTCClient.
256 if (loopback || !DirectRTCClient.IP_PATTERN.matcher(roomId).matches()) { 262 if (loopback || !DirectRTCClient.IP_PATTERN.matcher(roomId).matches()) {
257 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor()); 263 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor());
258 } else { 264 } else {
259 Log.i(TAG, "Using DirectRTCClient because room name looks like an IP."); 265 Log.i(TAG, "Using DirectRTCClient because room name looks like an IP.");
260 appRtcClient = new DirectRTCClient(this); 266 appRtcClient = new DirectRTCClient(this);
(...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 } 723 }
718 } 724 }
719 }); 725 });
720 } 726 }
721 727
722 @Override 728 @Override
723 public void onPeerConnectionError(final String description) { 729 public void onPeerConnectionError(final String description) {
724 reportError(description); 730 reportError(description);
725 } 731 }
726 } 732 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698