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:
@ -19,23 +19,7 @@ package org.webrtc;
|
|||||||
* its output to the encoder) can be too high to bear.
|
* its output to the encoder) can be too high to bear.
|
||||||
*/
|
*/
|
||||||
public class VideoSource extends MediaSource {
|
public class VideoSource extends MediaSource {
|
||||||
|
|
||||||
public VideoSource(long nativeSource) {
|
public VideoSource(long nativeSource) {
|
||||||
super(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);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {
|
JOW(jstring, MediaStreamTrack_nativeId)(JNIEnv* jni, jclass, jlong j_p) {
|
||||||
return JavaStringFromStdString(
|
return JavaStringFromStdString(
|
||||||
jni, reinterpret_cast<MediaStreamTrackInterface*>(j_p)->id());
|
jni, reinterpret_cast<MediaStreamTrackInterface*>(j_p)->id());
|
||||||
|
|||||||
Reference in New Issue
Block a user