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

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

Issue 1537213002: Revert of Reland "Added option to specify a maximum file size when recording an AEC dump." (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years 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 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
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 factory.createAudioSource(audioConstraints))); 489 factory.createAudioSource(audioConstraints)));
490 peerConnection.addStream(mediaStream); 490 peerConnection.addStream(mediaStream);
491 491
492 if (peerConnectionParameters.aecDump) { 492 if (peerConnectionParameters.aecDump) {
493 try { 493 try {
494 aecDumpFileDescriptor = ParcelFileDescriptor.open( 494 aecDumpFileDescriptor = ParcelFileDescriptor.open(
495 new File("/sdcard/Download/audio.aecdump"), 495 new File("/sdcard/Download/audio.aecdump"),
496 ParcelFileDescriptor.MODE_READ_WRITE | 496 ParcelFileDescriptor.MODE_READ_WRITE |
497 ParcelFileDescriptor.MODE_CREATE | 497 ParcelFileDescriptor.MODE_CREATE |
498 ParcelFileDescriptor.MODE_TRUNCATE); 498 ParcelFileDescriptor.MODE_TRUNCATE);
499 factory.startAecDump(aecDumpFileDescriptor.getFd(), -1); 499 factory.startAecDump(aecDumpFileDescriptor.getFd());
500 } catch(IOException e) { 500 } catch(IOException e) {
501 Log.e(TAG, "Can not open aecdump file", e); 501 Log.e(TAG, "Can not open aecdump file", e);
502 } 502 }
503 } 503 }
504 504
505 Log.d(TAG, "Peer connection created."); 505 Log.d(TAG, "Peer connection created.");
506 } 506 }
507 507
508 private void closeInternal() { 508 private void closeInternal() {
509 if (factory != null && peerConnectionParameters.aecDump) { 509 if (factory != null && peerConnectionParameters.aecDump) {
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 public void onCreateFailure(final String error) { 1074 public void onCreateFailure(final String error) {
1075 reportError("createSDP error: " + error); 1075 reportError("createSDP error: " + error);
1076 } 1076 }
1077 1077
1078 @Override 1078 @Override
1079 public void onSetFailure(final String error) { 1079 public void onSetFailure(final String error) {
1080 reportError("setSDP error: " + error); 1080 reportError("setSDP error: " + error);
1081 } 1081 }
1082 } 1082 }
1083 } 1083 }
OLDNEW
« no previous file with comments | « talk/session/media/channelmanager.cc ('k') | webrtc/modules/audio_processing/audio_processing_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698