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

Side by Side Diff: talk/app/webrtc/java/src/org/webrtc/PeerConnectionFactory.java

Issue 1413483003: 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: Added function to avoid breaking Chromium. 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
« no previous file with comments | « talk/app/webrtc/java/jni/peerconnection_jni.cc ('k') | talk/app/webrtc/peerconnectionfactory.h » ('j') | 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 * libjingle 2 * libjingle
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 } 136 }
137 137
138 public AudioTrack createAudioTrack(String id, AudioSource source) { 138 public AudioTrack createAudioTrack(String id, AudioSource source) {
139 return new AudioTrack(nativeCreateAudioTrack( 139 return new AudioTrack(nativeCreateAudioTrack(
140 nativeFactory, id, source.nativeSource)); 140 nativeFactory, id, source.nativeSource));
141 } 141 }
142 142
143 // Starts recording an AEC dump. Ownership of the file is transfered to the 143 // Starts recording an AEC dump. Ownership of the file is transfered to the
144 // native code. If an AEC dump is already in progress, it will be stopped and 144 // native code. If an AEC dump is already in progress, it will be stopped and
145 // a new one will start using the provided file. 145 // a new one will start using the provided file.
146 public boolean startAecDump(int file_descriptor) { 146 public boolean startAecDump(int file_descriptor, int filesize_limit_bytes) {
147 return nativeStartAecDump(nativeFactory, file_descriptor); 147 return nativeStartAecDump(nativeFactory, file_descriptor, filesize_limit_byt es);
148 } 148 }
149 149
150 // Stops recording an AEC dump. If no AEC dump is currently being recorded, 150 // Stops recording an AEC dump. If no AEC dump is currently being recorded,
151 // this call will have no effect. 151 // this call will have no effect.
152 public void stopAecDump() { 152 public void stopAecDump() {
153 nativeStopAecDump(nativeFactory); 153 nativeStopAecDump(nativeFactory);
154 } 154 }
155 155
156 // Starts recording an RTC event log. Ownership of the file is transfered to 156 // Starts recording an RTC event log. Ownership of the file is transfered to
157 // the native code. If an RTC event log is already being recorded, it will be 157 // the native code. If an RTC event log is already being recorded, it will be
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 243
244 private static native long nativeCreateVideoTrack( 244 private static native long nativeCreateVideoTrack(
245 long nativeFactory, String id, long nativeVideoSource); 245 long nativeFactory, String id, long nativeVideoSource);
246 246
247 private static native long nativeCreateAudioSource( 247 private static native long nativeCreateAudioSource(
248 long nativeFactory, MediaConstraints constraints); 248 long nativeFactory, MediaConstraints constraints);
249 249
250 private static native long nativeCreateAudioTrack( 250 private static native long nativeCreateAudioTrack(
251 long nativeFactory, String id, long nativeSource); 251 long nativeFactory, String id, long nativeSource);
252 252
253 private static native boolean nativeStartAecDump(long nativeFactory, int file_ descriptor); 253 private static native boolean nativeStartAecDump(
254 long nativeFactory, int file_descriptor, int filesize_limit_bytes);
254 255
255 private static native void nativeStopAecDump(long nativeFactory); 256 private static native void nativeStopAecDump(long nativeFactory);
256 257
257 private static native boolean nativeStartRtcEventLog(long nativeFactory, int f ile_descriptor); 258 private static native boolean nativeStartRtcEventLog(long nativeFactory, int f ile_descriptor);
258 259
259 private static native void nativeStopRtcEventLog(long nativeFactory); 260 private static native void nativeStopRtcEventLog(long nativeFactory);
260 261
261 public native void nativeSetOptions(long nativeFactory, Options options); 262 public native void nativeSetOptions(long nativeFactory, Options options);
262 263
263 private static native void nativeSetVideoHwAccelerationOptions( 264 private static native void nativeSetVideoHwAccelerationOptions(
264 long nativeFactory, Object localEGLContext, Object remoteEGLContext); 265 long nativeFactory, Object localEGLContext, Object remoteEGLContext);
265 266
266 private static native void nativeThreadsCallbacks(long nativeFactory); 267 private static native void nativeThreadsCallbacks(long nativeFactory);
267 268
268 private static native void nativeFreeFactory(long nativeFactory); 269 private static native void nativeFreeFactory(long nativeFactory);
269 } 270 }
OLDNEW
« no previous file with comments | « talk/app/webrtc/java/jni/peerconnection_jni.cc ('k') | talk/app/webrtc/peerconnectionfactory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698