From 4b2be9739b6fff561e2477b9c3b4a47433116ccc Mon Sep 17 00:00:00 2001 From: sakal Date: Fri, 2 Sep 2016 01:09:32 -0700 Subject: [PATCH] Remove VideoSource.stop() and VideoSource.restart() from the Java API. These methods are not used by the new AndroidVideoTrackSource API. Review-Url: https://codereview.webrtc.org/2280873002 Cr-Commit-Position: refs/heads/master@{#14036} --- .../android/java/src/org/webrtc/VideoSource.java | 16 ---------------- webrtc/api/android/jni/peerconnection_jni.cc | 9 --------- 2 files changed, 25 deletions(-) diff --git a/webrtc/api/android/java/src/org/webrtc/VideoSource.java b/webrtc/api/android/java/src/org/webrtc/VideoSource.java index ba5d2ca6af..f664f19d2c 100644 --- a/webrtc/api/android/java/src/org/webrtc/VideoSource.java +++ b/webrtc/api/android/java/src/org/webrtc/VideoSource.java @@ -19,23 +19,7 @@ package org.webrtc; * its output to the encoder) can be too high to bear. */ public class VideoSource extends MediaSource { - public VideoSource(long nativeSource) { super(nativeSource); } - - // Stop capture feeding this source. - public void stop() { - stop(nativeSource); - } - - // Restart capture feeding this source. stop() must have been called since - // the last call to restart() (if any). Note that this isn't "start()"; - // sources are started by default at birth. - public void restart() { - restart(nativeSource); - } - - private static native void stop(long nativeSource); - private static native void restart(long nativeSource); } diff --git a/webrtc/api/android/jni/peerconnection_jni.cc b/webrtc/api/android/jni/peerconnection_jni.cc index 684e486148..aed774fdc7 100644 --- a/webrtc/api/android/jni/peerconnection_jni.cc +++ b/webrtc/api/android/jni/peerconnection_jni.cc @@ -2003,15 +2003,6 @@ JOW(void, VideoRenderer_nativeCopyPlane)( } } -JOW(void, VideoSource_stop)(JNIEnv* jni, jclass, jlong j_p) { - reinterpret_cast(j_p)->Stop(); -} - -JOW(void, VideoSource_restart)( - JNIEnv* jni, jclass, jlong j_p_source, jlong j_p_format) { - reinterpret_cast(j_p_source)->Restart(); -} - JOW(jstring, MediaStreamTrack_nativeId)(JNIEnv* jni, jclass, jlong j_p) { return JavaStringFromStdString( jni, reinterpret_cast(j_p)->id());