| 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 2edd56e8413d2b17601a7ab8e4929e608cf6747f..0c1ef3ca88e8a5ef77a3f891127e7a3986616c08 100644
|
| --- a/webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java
|
| +++ b/webrtc/api/java/src/org/webrtc/PeerConnectionFactory.java
|
| @@ -148,6 +148,28 @@
|
| nativeStopAecDump(nativeFactory);
|
| }
|
|
|
| + // Starts recording an RTC event log. Ownership of the file is transfered to
|
| + // 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 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
|
| + // recorded, this call will have no effect.
|
| + public void stopRtcEventLog() {
|
| + nativeStopRtcEventLog(nativeFactory);
|
| + }
|
| +
|
| @Deprecated
|
| public void setOptions(Options options) {
|
| nativeSetOptions(nativeFactory, options);
|
| @@ -253,6 +275,12 @@
|
|
|
| private static native void nativeStopAecDump(long nativeFactory);
|
|
|
| + private static native boolean nativeStartRtcEventLog(long nativeFactory,
|
| + int file_descriptor,
|
| + int filesize_limit_bytes);
|
| +
|
| + private static native void nativeStopRtcEventLog(long nativeFactory);
|
| +
|
| @Deprecated
|
| public native void nativeSetOptions(long nativeFactory, Options options);
|
|
|
|
|