Fix for the JNI interface of RtcEventLog functions.
BUG=webrtc:4741 Review-Url: https://codereview.webrtc.org/2128483002 Cr-Commit-Position: refs/heads/master@{#13393}
This commit is contained in:
@ -1319,24 +1319,6 @@ JOW(void, PeerConnectionFactory_nativeStopAecDump)(
|
||||
factory->StopAecDump();
|
||||
}
|
||||
|
||||
JOW(jboolean, PeerConnectionFactory_nativeStartRtcEventLog)
|
||||
(JNIEnv* jni,
|
||||
jclass,
|
||||
jlong native_factory,
|
||||
jint file,
|
||||
jint filesize_limit_bytes) {
|
||||
rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
|
||||
factoryFromJava(native_factory));
|
||||
return factory->StartRtcEventLog(file, filesize_limit_bytes);
|
||||
}
|
||||
|
||||
JOW(void, PeerConnectionFactory_nativeStopRtcEventLog)(
|
||||
JNIEnv* jni, jclass, jlong native_factory) {
|
||||
rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
|
||||
factoryFromJava(native_factory));
|
||||
factory->StopRtcEventLog();
|
||||
}
|
||||
|
||||
JOW(void, PeerConnectionFactory_nativeSetOptions)(
|
||||
JNIEnv* jni, jclass, jlong native_factory, jobject options) {
|
||||
rtc::scoped_refptr<PeerConnectionFactoryInterface> factory(
|
||||
@ -1914,6 +1896,16 @@ JOW(bool, PeerConnection_nativeGetStats)(
|
||||
PeerConnectionInterface::kStatsOutputLevelStandard);
|
||||
}
|
||||
|
||||
JOW(bool, PeerConnection_nativeStartRtcEventLog)(
|
||||
JNIEnv* jni, jobject j_pc, int file_descriptor, int max_size_bytes) {
|
||||
return ExtractNativePC(jni, j_pc)->StartRtcEventLog(file_descriptor,
|
||||
max_size_bytes);
|
||||
}
|
||||
|
||||
JOW(void, PeerConnection_nativeStopRtcEventLog)(JNIEnv* jni, jobject j_pc) {
|
||||
ExtractNativePC(jni, j_pc)->StopRtcEventLog();
|
||||
}
|
||||
|
||||
JOW(jobject, PeerConnection_signalingState)(JNIEnv* jni, jobject j_pc) {
|
||||
PeerConnectionInterface::SignalingState state =
|
||||
ExtractNativePC(jni, j_pc)->signaling_state();
|
||||
|
||||
Reference in New Issue
Block a user