Revert of Move RtcEventLog object from inside VoiceEngine to Call. (patchset #16 id:420001 of https://codereview.webrtc.org/1748403002/ )
Reason for revert: Reverting all CLs related to moving the eventlog, as they break Chromium tests. Original issue's description: > Move RtcEventLog object from inside VoiceEngine to Call. > > In addition to moving the logging object itself, this also moves the interface from PeerConnectionFactory to PeerConnection, which makes more sense for this functionality. An API parameter to set an upper limit to the size of the logfile is introduced. > The old interface on PeerConnectionFactory is not removed in this CL, because it is called from Chrome, it will be removed after Chrome is updated to use the PeerConnection interface. > > BUG=webrtc:4741,webrtc:5603,chromium:609749 > R=solenberg@webrtc.org, stefan@webrtc.org, terelius@webrtc.org, tommi@webrtc.org > > Committed: https://crrev.com/1895526c6130e3d0e9b154f95079b8eda7567016 > Cr-Commit-Position: refs/heads/master@{#13321} TBR=solenberg@webrtc.org,tommi@webrtc.org,stefan@webrtc.org,terelius@webrtc.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=webrtc:4741,webrtc:5603,chromium:609749 Review-Url: https://codereview.webrtc.org/2111813002 Cr-Commit-Position: refs/heads/master@{#13340}
This commit is contained in:
@ -253,23 +253,6 @@ 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();
|
||||
@ -320,10 +303,4 @@ 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,6 +148,28 @@ 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);
|
||||
@ -253,6 +275,12 @@ 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