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

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

Issue 1548263003: Use getExternalStorageDirectory() for trace file. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 package org.appspot.apprtc; 11 package org.appspot.apprtc;
12 12
13 import android.content.Context; 13 import android.content.Context;
14 import android.os.ParcelFileDescriptor; 14 import android.os.ParcelFileDescriptor;
15 import android.os.Environment;
15 import android.util.Log; 16 import android.util.Log;
16 17
17 import org.appspot.apprtc.AppRTCClient.SignalingParameters; 18 import org.appspot.apprtc.AppRTCClient.SignalingParameters;
18 import org.appspot.apprtc.util.LooperExecutor; 19 import org.appspot.apprtc.util.LooperExecutor;
19 import org.webrtc.CameraEnumerationAndroid; 20 import org.webrtc.CameraEnumerationAndroid;
20 import org.webrtc.DataChannel; 21 import org.webrtc.DataChannel;
21 import org.webrtc.EglBase; 22 import org.webrtc.EglBase;
22 import org.webrtc.IceCandidate; 23 import org.webrtc.IceCandidate;
23 import org.webrtc.Logging; 24 import org.webrtc.Logging;
24 import org.webrtc.MediaCodecVideoEncoder; 25 import org.webrtc.MediaCodecVideoEncoder;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 }); 287 });
287 } 288 }
288 289
289 public boolean isVideoCallEnabled() { 290 public boolean isVideoCallEnabled() {
290 return videoCallEnabled; 291 return videoCallEnabled;
291 } 292 }
292 293
293 private void createPeerConnectionFactoryInternal(Context context) { 294 private void createPeerConnectionFactoryInternal(Context context) {
294 PeerConnectionFactory.initializeInternalTracer(); 295 PeerConnectionFactory.initializeInternalTracer();
295 if (peerConnectionParameters.tracing) { 296 if (peerConnectionParameters.tracing) {
296 PeerConnectionFactory.startInternalTracingCapture("/mnt/sdcard/webrtc- trace.txt"); 297 PeerConnectionFactory.startInternalTracingCapture(
298 Environment.getExternalStorageDirectory().getAbsolutePath() + File.separator
299 + "webrtc-trace.txt");
297 } 300 }
298 Log.d(TAG, "Create peer connection factory. Use video: " + 301 Log.d(TAG, "Create peer connection factory. Use video: " +
299 peerConnectionParameters.videoCallEnabled); 302 peerConnectionParameters.videoCallEnabled);
300 isError = false; 303 isError = false;
301 304
302 // Initialize field trials. 305 // Initialize field trials.
303 PeerConnectionFactory.initializeFieldTrials(FIELD_TRIAL_AUTOMATIC_RESIZE); 306 PeerConnectionFactory.initializeFieldTrials(FIELD_TRIAL_AUTOMATIC_RESIZE);
304 307
305 // Check preferred video codec. 308 // Check preferred video codec.
306 preferredVideoCodec = VIDEO_CODEC_VP8; 309 preferredVideoCodec = VIDEO_CODEC_VP8;
(...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 public void onCreateFailure(final String error) { 1077 public void onCreateFailure(final String error) {
1075 reportError("createSDP error: " + error); 1078 reportError("createSDP error: " + error);
1076 } 1079 }
1077 1080
1078 @Override 1081 @Override
1079 public void onSetFailure(final String error) { 1082 public void onSetFailure(final String error) {
1080 reportError("setSDP error: " + error); 1083 reportError("setSDP error: " + error);
1081 } 1084 }
1082 } 1085 }
1083 } 1086 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698