| OLD | NEW |
| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 = | 87 public static final String EXTRA_DISABLE_BUILT_IN_AGC = |
| 88 "org.appspot.apprtc.DISABLE_BUILT_IN_AGC"; | 88 "org.appspot.apprtc.DISABLE_BUILT_IN_AGC"; |
| 89 public static final String EXTRA_DISABLE_BUILT_IN_NS = | 89 public static final String EXTRA_DISABLE_BUILT_IN_NS = |
| 90 "org.appspot.apprtc.DISABLE_BUILT_IN_NS"; | 90 "org.appspot.apprtc.DISABLE_BUILT_IN_NS"; |
| 91 public static final String EXTRA_ENABLE_LEVEL_CONTROL = |
| 92 "org.appspot.apprtc.ENABLE_LEVEL_CONTROL"; |
| 91 public static final String EXTRA_DISPLAY_HUD = | 93 public static final String EXTRA_DISPLAY_HUD = |
| 92 "org.appspot.apprtc.DISPLAY_HUD"; | 94 "org.appspot.apprtc.DISPLAY_HUD"; |
| 93 public static final String EXTRA_TRACING = "org.appspot.apprtc.TRACING"; | 95 public static final String EXTRA_TRACING = "org.appspot.apprtc.TRACING"; |
| 94 public static final String EXTRA_CMDLINE = | 96 public static final String EXTRA_CMDLINE = |
| 95 "org.appspot.apprtc.CMDLINE"; | 97 "org.appspot.apprtc.CMDLINE"; |
| 96 public static final String EXTRA_RUNTIME = | 98 public static final String EXTRA_RUNTIME = |
| 97 "org.appspot.apprtc.RUNTIME"; | 99 "org.appspot.apprtc.RUNTIME"; |
| 98 private static final String TAG = "CallRTCClient"; | 100 private static final String TAG = "CallRTCClient"; |
| 99 | 101 |
| 100 // List of mandatory application permissions. | 102 // List of mandatory application permissions. |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 intent.getStringExtra(EXTRA_VIDEOCODEC), | 248 intent.getStringExtra(EXTRA_VIDEOCODEC), |
| 247 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true), | 249 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true), |
| 248 intent.getBooleanExtra(EXTRA_CAPTURETOTEXTURE_ENABLED, false), | 250 intent.getBooleanExtra(EXTRA_CAPTURETOTEXTURE_ENABLED, false), |
| 249 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0), | 251 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0), |
| 250 intent.getStringExtra(EXTRA_AUDIOCODEC), | 252 intent.getStringExtra(EXTRA_AUDIOCODEC), |
| 251 intent.getBooleanExtra(EXTRA_NOAUDIOPROCESSING_ENABLED, false), | 253 intent.getBooleanExtra(EXTRA_NOAUDIOPROCESSING_ENABLED, false), |
| 252 intent.getBooleanExtra(EXTRA_AECDUMP_ENABLED, false), | 254 intent.getBooleanExtra(EXTRA_AECDUMP_ENABLED, false), |
| 253 intent.getBooleanExtra(EXTRA_OPENSLES_ENABLED, false), | 255 intent.getBooleanExtra(EXTRA_OPENSLES_ENABLED, false), |
| 254 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_AEC, false), | 256 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_AEC, false), |
| 255 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_AGC, false), | 257 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_AGC, false), |
| 256 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_NS, false)); | 258 intent.getBooleanExtra(EXTRA_DISABLE_BUILT_IN_NS, false), |
| 259 intent.getBooleanExtra(EXTRA_ENABLE_LEVEL_CONTROL, false)); |
| 257 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false); | 260 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false); |
| 258 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0); | 261 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0); |
| 259 | 262 |
| 260 // Create connection client. Use DirectRTCClient if room name is an IP other
wise use the | 263 // Create connection client. Use DirectRTCClient if room name is an IP other
wise use the |
| 261 // standard WebSocketRTCClient. | 264 // standard WebSocketRTCClient. |
| 262 if (loopback || !DirectRTCClient.IP_PATTERN.matcher(roomId).matches()) { | 265 if (loopback || !DirectRTCClient.IP_PATTERN.matcher(roomId).matches()) { |
| 263 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor()); | 266 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor()); |
| 264 } else { | 267 } else { |
| 265 Log.i(TAG, "Using DirectRTCClient because room name looks like an IP."); | 268 Log.i(TAG, "Using DirectRTCClient because room name looks like an IP."); |
| 266 appRtcClient = new DirectRTCClient(this); | 269 appRtcClient = new DirectRTCClient(this); |
| (...skipping 456 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 723 } | 726 } |
| 724 } | 727 } |
| 725 }); | 728 }); |
| 726 } | 729 } |
| 727 | 730 |
| 728 @Override | 731 @Override |
| 729 public void onPeerConnectionError(final String description) { | 732 public void onPeerConnectionError(final String description) { |
| 730 reportError(description); | 733 reportError(description); |
| 731 } | 734 } |
| 732 } | 735 } |
| OLD | NEW |