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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 public static final String EXTRA_VIDEO_FPS = | 59 public static final String EXTRA_VIDEO_FPS = |
60 "org.appspot.apprtc.VIDEO_FPS"; | 60 "org.appspot.apprtc.VIDEO_FPS"; |
61 public static final String EXTRA_VIDEO_CAPTUREQUALITYSLIDER_ENABLED = | 61 public static final String EXTRA_VIDEO_CAPTUREQUALITYSLIDER_ENABLED = |
62 "org.appsopt.apprtc.VIDEO_CAPTUREQUALITYSLIDER"; | 62 "org.appsopt.apprtc.VIDEO_CAPTUREQUALITYSLIDER"; |
63 public static final String EXTRA_VIDEO_BITRATE = | 63 public static final String EXTRA_VIDEO_BITRATE = |
64 "org.appspot.apprtc.VIDEO_BITRATE"; | 64 "org.appspot.apprtc.VIDEO_BITRATE"; |
65 public static final String EXTRA_VIDEOCODEC = | 65 public static final String EXTRA_VIDEOCODEC = |
66 "org.appspot.apprtc.VIDEOCODEC"; | 66 "org.appspot.apprtc.VIDEOCODEC"; |
67 public static final String EXTRA_HWCODEC_ENABLED = | 67 public static final String EXTRA_HWCODEC_ENABLED = |
68 "org.appspot.apprtc.HWCODEC"; | 68 "org.appspot.apprtc.HWCODEC"; |
| 69 public static final String EXTRA_CAPTURETOTEXTURE_ENABLED = |
| 70 "org.appspot.apprtc.CAPTURETOTEXTURE"; |
69 public static final String EXTRA_AUDIO_BITRATE = | 71 public static final String EXTRA_AUDIO_BITRATE = |
70 "org.appspot.apprtc.AUDIO_BITRATE"; | 72 "org.appspot.apprtc.AUDIO_BITRATE"; |
71 public static final String EXTRA_AUDIOCODEC = | 73 public static final String EXTRA_AUDIOCODEC = |
72 "org.appspot.apprtc.AUDIOCODEC"; | 74 "org.appspot.apprtc.AUDIOCODEC"; |
73 public static final String EXTRA_NOAUDIOPROCESSING_ENABLED = | 75 public static final String EXTRA_NOAUDIOPROCESSING_ENABLED = |
74 "org.appspot.apprtc.NOAUDIOPROCESSING"; | 76 "org.appspot.apprtc.NOAUDIOPROCESSING"; |
75 public static final String EXTRA_OPENSLES_ENABLED = | 77 public static final String EXTRA_OPENSLES_ENABLED = |
76 "org.appspot.apprtc.OPENSLES"; | 78 "org.appspot.apprtc.OPENSLES"; |
77 public static final String EXTRA_DISPLAY_HUD = | 79 public static final String EXTRA_DISPLAY_HUD = |
78 "org.appspot.apprtc.DISPLAY_HUD"; | 80 "org.appspot.apprtc.DISPLAY_HUD"; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 boolean loopback = intent.getBooleanExtra(EXTRA_LOOPBACK, false); | 215 boolean loopback = intent.getBooleanExtra(EXTRA_LOOPBACK, false); |
214 peerConnectionParameters = new PeerConnectionParameters( | 216 peerConnectionParameters = new PeerConnectionParameters( |
215 intent.getBooleanExtra(EXTRA_VIDEO_CALL, true), | 217 intent.getBooleanExtra(EXTRA_VIDEO_CALL, true), |
216 loopback, | 218 loopback, |
217 intent.getIntExtra(EXTRA_VIDEO_WIDTH, 0), | 219 intent.getIntExtra(EXTRA_VIDEO_WIDTH, 0), |
218 intent.getIntExtra(EXTRA_VIDEO_HEIGHT, 0), | 220 intent.getIntExtra(EXTRA_VIDEO_HEIGHT, 0), |
219 intent.getIntExtra(EXTRA_VIDEO_FPS, 0), | 221 intent.getIntExtra(EXTRA_VIDEO_FPS, 0), |
220 intent.getIntExtra(EXTRA_VIDEO_BITRATE, 0), | 222 intent.getIntExtra(EXTRA_VIDEO_BITRATE, 0), |
221 intent.getStringExtra(EXTRA_VIDEOCODEC), | 223 intent.getStringExtra(EXTRA_VIDEOCODEC), |
222 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true), | 224 intent.getBooleanExtra(EXTRA_HWCODEC_ENABLED, true), |
| 225 intent.getBooleanExtra(EXTRA_CAPTURETOTEXTURE_ENABLED, false), |
223 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0), | 226 intent.getIntExtra(EXTRA_AUDIO_BITRATE, 0), |
224 intent.getStringExtra(EXTRA_AUDIOCODEC), | 227 intent.getStringExtra(EXTRA_AUDIOCODEC), |
225 intent.getBooleanExtra(EXTRA_NOAUDIOPROCESSING_ENABLED, false), | 228 intent.getBooleanExtra(EXTRA_NOAUDIOPROCESSING_ENABLED, false), |
226 intent.getBooleanExtra(EXTRA_OPENSLES_ENABLED, false)); | 229 intent.getBooleanExtra(EXTRA_OPENSLES_ENABLED, false)); |
227 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false); | 230 commandLineRun = intent.getBooleanExtra(EXTRA_CMDLINE, false); |
228 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0); | 231 runTimeMs = intent.getIntExtra(EXTRA_RUNTIME, 0); |
229 | 232 |
230 // Create connection client and connection parameters. | 233 // Create connection client and connection parameters. |
231 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor()); | 234 appRtcClient = new WebSocketRTCClient(this, new LooperExecutor()); |
232 roomConnectionParameters = new RoomConnectionParameters( | 235 roomConnectionParameters = new RoomConnectionParameters( |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 } | 643 } |
641 } | 644 } |
642 }); | 645 }); |
643 } | 646 } |
644 | 647 |
645 @Override | 648 @Override |
646 public void onPeerConnectionError(final String description) { | 649 public void onPeerConnectionError(final String description) { |
647 reportError(description); | 650 reportError(description); |
648 } | 651 } |
649 } | 652 } |
OLD | NEW |