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}
This commit is contained in:
sakal
2016-09-02 01:09:32 -07:00
committed by Commit bot
parent 97667c7746
commit 4b2be9739b
2 changed files with 0 additions and 25 deletions

View File

@ -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);
}

View File

@ -2003,15 +2003,6 @@ JOW(void, VideoRenderer_nativeCopyPlane)(
}
}
JOW(void, VideoSource_stop)(JNIEnv* jni, jclass, jlong j_p) {
reinterpret_cast<VideoTrackSourceInterface*>(j_p)->Stop();
}
JOW(void, VideoSource_restart)(
JNIEnv* jni, jclass, jlong j_p_source, jlong j_p_format) {
reinterpret_cast<VideoTrackSourceInterface*>(j_p_source)->Restart();
}
JOW(jstring, MediaStreamTrack_nativeId)(JNIEnv* jni, jclass, jlong j_p) {
return JavaStringFromStdString(
jni, reinterpret_cast<MediaStreamTrackInterface*>(j_p)->id());