Index: webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java |
diff --git a/webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java b/webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java |
index 87fa55afcc00a11932981724b8667cf6ca9b46de..ff2a16fc4914255e8e1b0bb3c475f9ec693410c0 100644 |
--- a/webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java |
+++ b/webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java |
@@ -151,7 +151,16 @@ public class PeerConnectionFactory { |
// the native code. If an RTC event log is already being recorded, it will be |
// stopped and a new one will start using the provided file. |
public boolean startRtcEventLog(int file_descriptor) { |
- return nativeStartRtcEventLog(nativeFactory, file_descriptor); |
+ return startRtcEventLog(file_descriptor, -1); |
+ } |
+ |
+ // Same as above, but allows setting an upper limit to the size of the |
+ // generated logfile. |
+ public boolean startRtcEventLog(int file_descriptor, |
+ int filesize_limit_bytes) { |
+ return nativeStartRtcEventLog(nativeFactory, |
+ file_descriptor, |
+ filesize_limit_bytes); |
} |
// Stops recording an RTC event log. If no RTC event log is currently being |
@@ -258,7 +267,9 @@ public class PeerConnectionFactory { |
private static native void nativeStopAecDump(long nativeFactory); |
- private static native boolean nativeStartRtcEventLog(long nativeFactory, int file_descriptor); |
+ private static native boolean nativeStartRtcEventLog(long nativeFactory, |
+ int file_descriptor, |
+ int filesize_limit_bytes); |
private static native void nativeStopRtcEventLog(long nativeFactory); |