Reland of "Move RtcEventLog object from inside VoiceEngine to Call.", "Fix to make the start/stop functions for the Rtc Eventlog non-virtual." and "Fix for RtcEventLog ObjC interface"
The breaking tests in Chromium have been temporarily disabled, they will be fixed and reenabled soon. Original CLs: https://codereview.webrtc.org/1748403002/, https://codereview.webrtc.org/2107253002/ and https://codereview.webrtc.org/2106103003/. TBR=solenberg@webrtc.org,tommi@webrtc.org,stefan@webrtc.org,terelius@webrtc.org,tkchin@webrtc.org BUG=webrtc:4741, webrtc:5603, chromium:609749 Review-Url: https://codereview.webrtc.org/2110113003 Cr-Commit-Position: refs/heads/master@{#13379}
This commit is contained in:
@ -257,6 +257,23 @@ 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. Logging will
|
||||
// continue until the stopRtcEventLog function is called. The max_size_bytes
|
||||
// argument is ignored, it is added for future use.
|
||||
public boolean startRtcEventLog(
|
||||
int file_descriptor, long max_size_bytes) {
|
||||
return nativeStartRtcEventLog(
|
||||
nativePeerConnection, file_descriptor, max_size_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(nativePeerConnection);
|
||||
}
|
||||
|
||||
// TODO(fischman): add support for DTMF-related methods once that API
|
||||
// stabilizes.
|
||||
public native SignalingState signalingState();
|
||||
@ -307,4 +324,10 @@ public class PeerConnection {
|
||||
private native List<RtpSender> nativeGetSenders();
|
||||
|
||||
private native List<RtpReceiver> nativeGetReceivers();
|
||||
|
||||
private static native boolean nativeStartRtcEventLog(
|
||||
long nativePeerConnection, int file_descriptor, long max_size_bytes);
|
||||
|
||||
private static native void nativeStopRtcEventLog(long nativePeerConnection);
|
||||
|
||||
}
|
||||
|
||||
@ -148,28 +148,6 @@ public class PeerConnectionFactory {
|
||||
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);
|
||||
@ -275,12 +253,6 @@ public class PeerConnectionFactory {
|
||||
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user