| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2015 Google Inc. | 3 * Copyright 2015 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 public static final String EXTRA_VIDEO_BITRATE = | 78 public static final String EXTRA_VIDEO_BITRATE = |
| 79 "org.appspot.apprtc.VIDEO_BITRATE"; | 79 "org.appspot.apprtc.VIDEO_BITRATE"; |
| 80 public static final String EXTRA_VIDEOCODEC = | 80 public static final String EXTRA_VIDEOCODEC = |
| 81 "org.appspot.apprtc.VIDEOCODEC"; | 81 "org.appspot.apprtc.VIDEOCODEC"; |
| 82 public static final String EXTRA_HWCODEC_ENABLED = | 82 public static final String EXTRA_HWCODEC_ENABLED = |
| 83 "org.appspot.apprtc.HWCODEC"; | 83 "org.appspot.apprtc.HWCODEC"; |
| 84 public static final String EXTRA_AUDIO_BITRATE = | 84 public static final String EXTRA_AUDIO_BITRATE = |
| 85 "org.appspot.apprtc.AUDIO_BITRATE"; | 85 "org.appspot.apprtc.AUDIO_BITRATE"; |
| 86 public static final String EXTRA_AUDIOCODEC = | 86 public static final String EXTRA_AUDIOCODEC = |
| 87 "org.appspot.apprtc.AUDIOCODEC"; | 87 "org.appspot.apprtc.AUDIOCODEC"; |
| 88 public static final String EXTRA_NOAUDIOPROCESSING_ENABLED = |
| 89 "org.appspot.apprtc.NOAUDIOPROCESSING"; |
| 88 public static final String EXTRA_CPUOVERUSE_DETECTION = | 90 public static final String EXTRA_CPUOVERUSE_DETECTION = |
| 89 "org.appspot.apprtc.CPUOVERUSE_DETECTION"; | 91 "org.appspot.apprtc.CPUOVERUSE_DETECTION"; |
| 90 public static final String EXTRA_DISPLAY_HUD = | 92 public static final String EXTRA_DISPLAY_HUD = |
| 91 "org.appspot.apprtc.DISPLAY_HUD"; | 93 "org.appspot.apprtc.DISPLAY_HUD"; |
| 92 public static final String EXTRA_CMDLINE = | 94 public static final String EXTRA_CMDLINE = |
| 93 "org.appspot.apprtc.CMDLINE"; | 95 "org.appspot.apprtc.CMDLINE"; |
| 94 public static final String EXTRA_RUNTIME = | 96 public static final String EXTRA_RUNTIME = |
| 95 "org.appspot.apprtc.RUNTIME"; | 97 "org.appspot.apprtc.RUNTIME"; |
| 96 private static final String TAG = "CallRTCClient"; | 98 private static final String TAG = "CallRTCClient"; |
| 97 | 99 |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 intent.getBooleanExtra(EXTRA_VIDEO_CALL, true), | 230 intent.getBooleanExtra(EXTRA_VIDEO_CALL, true), |
| 229 loopback, | 231 loopback, |
| 230 intent.getIntExtra(EXTRA_VIDEO_WIDTH, 0), | 232 intent.getIntExtra(EXTRA_VIDEO_WIDTH, 0), |
| 231 intent.getIntExtra(EXTRA_VIDEO_HEIGHT, 0), | 233 intent.getIntExtra(EXTRA_VIDEO_HEIGHT, 0), |
| 232 intent.getIntExtra(EXTRA_VIDEO_FPS, 0), | 234 intent.getIntExtra(EXTRA_VIDEO_FPS, 0), |
| 233 intent.getIntExtra(EXTRA_VIDEO_BITRATE, 0), | 235 intent.getIntExtra(EXTRA_VIDEO_BITRATE, 0), |
| 234 intent.getStringExtra(EXTRA_VIDEOCODEC), | 236 intent.getStringExtra(EXTRA_VIDEOCODEC), |
| 235 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true), | 237 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true), |
| 236 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0), | 238 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0), |
| 237 intent.getStringExtra(EXTRA_AUDIOCODEC), | 239 intent.getStringExtra(EXTRA_AUDIOCODEC), |
| 240 intent.getBooleanExtra(EXTRA_NOAUDIOPROCESSING_ENABLED, false), |
| 238 intent.getBooleanExtra(EXTRA_CPUOVERUSE_DETECTION, true)); | 241 intent.getBooleanExtra(EXTRA_CPUOVERUSE_DETECTION, true)); |
| 239 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false); | 242 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false); |
| 240 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0); | 243 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0); |
| 241 | 244 |
| 242 // Create connection client and connection parameters. | 245 // Create connection client and connection parameters. |
| 243 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor()); | 246 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor()); |
| 244 roomConnectionParameters = new RoomConnectionParameters( | 247 roomConnectionParameters = new RoomConnectionParameters( |
| 245 roomUri.toString(), roomId, loopback); | 248 roomUri.toString(), roomId, loopback); |
| 246 | 249 |
| 247 // Send intent arguments to fragments. | 250 // Send intent arguments to fragments. |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 } | 655 } |
| 653 } | 656 } |
| 654 }); | 657 }); |
| 655 } | 658 } |
| 656 | 659 |
| 657 @Override | 660 @Override |
| 658 public void onPeerConnectionError(final String description) { | 661 public void onPeerConnectionError(final String description) { |
| 659 reportError(description); | 662 reportError(description); |
| 660 } | 663 } |
| 661 } | 664 } |
| OLD | NEW |