Index: webrtc/api/java/src/org/webrtc/PeerConnection.java |
diff --git a/webrtc/api/java/src/org/webrtc/PeerConnection.java b/webrtc/api/java/src/org/webrtc/PeerConnection.java |
index 3c9fa0ee21f248a87fc4f3e0ac860be6e733e8fc..44b82696a24773e66ed077f015624af1f7332607 100644 |
--- a/webrtc/api/java/src/org/webrtc/PeerConnection.java |
+++ b/webrtc/api/java/src/org/webrtc/PeerConnection.java |
@@ -237,6 +237,19 @@ public class PeerConnection { |
return nativeGetStats(observer, (track == null) ? 0 : track.nativeTrack); |
} |
+ // 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) { |
the sun
2016/03/03 09:25:12
as discussed offline, add the max file size here t
ivoc
2016/03/10 13:15:35
Done.
|
+ return nativeStartRtcEventLog(nativePeerConnection, file_descriptor); |
+ } |
+ |
+ // Stops recording an RTC event log. If no RTC event log is currently being |
+ // recorded, this call will have no effect. |
+ public void StopRtcEventLog() { |
the sun
2016/03/03 09:25:12
lower case 's' in 'stop'
ivoc
2016/03/10 13:15:35
Done.
|
+ nativeStopRtcEventLog(nativePeerConnection); |
+ } |
+ |
// TODO(fischman): add support for DTMF-related methods once that API |
// stabilizes. |
public native SignalingState signalingState(); |
@@ -285,4 +298,10 @@ public class PeerConnection { |
private native List<RtpSender> nativeGetSenders(); |
private native List<RtpReceiver> nativeGetReceivers(); |
+ |
+ private static native boolean nativeStartRtcEventLog( |
+ long nativePeerConnection, int file_descriptor); |
+ |
+ private static native void nativeStopRtcEventLog(long nativePeerConnection); |
+ |
} |