Add SetIsScreencast method to VideoSource.

Bug: None
Change-Id: Iec0bb066b8100fa1d4bd095f78a0473933d1e30d
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/159689
Reviewed-by: Sami Kalliomäki <sakal@webrtc.org>
Commit-Queue: Jakob Ivarsson <jakobi@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29785}
This commit is contained in:
Jakob Ivarsson
2019-11-12 17:30:45 +01:00
committed by Commit Bot
parent c1dac38aec
commit c5ec54e51b
4 changed files with 18 additions and 1 deletions

View File

@ -86,6 +86,11 @@ bool AndroidVideoTrackSource::remote() const {
return false;
}
void AndroidVideoTrackSource::SetIsScreencast(JNIEnv* env,
jboolean j_is_screencast) {
is_screencast_ = j_is_screencast;
}
ScopedJavaLocalRef<jobject> AndroidVideoTrackSource::AdaptFrame(
JNIEnv* env,
jint j_width,